GtkSourceCompletionItem — Simple implementation of GtkSourceCompletionProposal
The GtkSourceCompletionItem class is a simple implementation of the GtkSourceCompletionProposal interface.
GtkSourceCompletionItem * gtk_source_completion_item_new (const gchar *label,const gchar *text,GdkPixbuf *icon,const gchar *info);
gtk_source_completion_item_new has been deprecated since version 3.24 and should not be used in newly-written code.
Use gtk_source_completion_item_new2() instead.
Create a new GtkSourceCompletionItem with label label
, icon icon
and
extra information info
. Both icon
and info
can be NULL in which case
there will be no icon shown and no extra information available.
GtkSourceCompletionItem * gtk_source_completion_item_new_with_markup (const gchar *markup,const gchar *text,GdkPixbuf *icon,const gchar *info);
gtk_source_completion_item_new_with_markup has been deprecated since version 3.24 and should not be used in newly-written code.
Use gtk_source_completion_item_new2() instead.
Create a new GtkSourceCompletionItem with markup label markup
, icon
icon
and extra information info
. Both icon
and info
can be NULL in
which case there will be no icon shown and no extra information available.
GtkSourceCompletionItem * gtk_source_completion_item_new_from_stock (const gchar *label,const gchar *text,const gchar *stock,const gchar *info);
gtk_source_completion_item_new_from_stock has been deprecated since version 3.10 and should not be used in newly-written code.
Use gtk_source_completion_item_new2() instead.
Creates a new GtkSourceCompletionItem from a stock item. If label
is NULL,
the stock label will be used.
GtkSourceCompletionItem *
gtk_source_completion_item_new2 (void);
Creates a new GtkSourceCompletionItem. The desired properties need to be set afterwards.
Since: 3.24
void gtk_source_completion_item_set_label (GtkSourceCompletionItem *item,const gchar *label);
Since: 3.24
void gtk_source_completion_item_set_markup (GtkSourceCompletionItem *item,const gchar *markup);
Since: 3.24
void gtk_source_completion_item_set_text (GtkSourceCompletionItem *item,const gchar *text);
Since: 3.24
void gtk_source_completion_item_set_icon (GtkSourceCompletionItem *item,GdkPixbuf *icon);
Since: 3.24
void gtk_source_completion_item_set_icon_name (GtkSourceCompletionItem *item,const gchar *icon_name);
Since: 3.24
void gtk_source_completion_item_set_gicon (GtkSourceCompletionItem *item,GIcon *gicon);
Since: 3.24
void gtk_source_completion_item_set_info (GtkSourceCompletionItem *item,const gchar *info);
Since: 3.24
“gicon” property“gicon” GIcon *
The GIcon for the icon to be shown for this proposal.
Owner: GtkSourceCompletionItem
Flags: Read / Write
Since: 3.18
“icon” property“icon” GdkPixbuf *
The GdkPixbuf for the icon to be shown for this proposal.
Owner: GtkSourceCompletionItem
Flags: Read / Write
“icon-name” property“icon-name” char *
The icon name for the icon to be shown for this proposal.
Owner: GtkSourceCompletionItem
Flags: Read / Write
Default value: NULL
Since: 3.18
“info” property“info” char *
Optional extra information to be shown for this proposal.
Owner: GtkSourceCompletionItem
Flags: Read / Write
Default value: NULL
“label” property“label” char *
Label to be shown for this proposal.
Owner: GtkSourceCompletionItem
Flags: Read / Write
Default value: NULL
“markup” property“markup” char *
Label with markup to be shown for this proposal.
Owner: GtkSourceCompletionItem
Flags: Read / Write
Default value: NULL
“text” property“text” char *
Proposal text.
Owner: GtkSourceCompletionItem
Flags: Read / Write
Default value: NULL