GtkSourceCompletionItem

GtkSourceCompletionItem — Simple implementation of GtkSourceCompletionProposal

Functions

Types and Values

Includes

#include <gtksourceview/gtksource.h>

Description

The GtkSourceCompletionItem class is a simple implementation of the GtkSourceCompletionProposal interface.

Functions

gtk_source_completion_item_new ()

GtkSourceCompletionItem *
gtk_source_completion_item_new (const gchar *label,
                                const gchar *text,
                                GdkPixbuf *icon,
                                const gchar *info);

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.

Parameters

label

The item label.

 

text

The item text.

 

icon

The item icon.

[allow-none]

info

The item extra information.

[allow-none]

Returns

a new GtkSourceCompletionItem.


gtk_source_completion_item_new_with_markup ()

GtkSourceCompletionItem *
gtk_source_completion_item_new_with_markup
                               (const gchar *markup,
                                const gchar *text,
                                GdkPixbuf *icon,
                                const gchar *info);

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.

Parameters

markup

The item markup label.

 

text

The item text.

 

icon

The item icon.

[allow-none]

info

The item extra information.

[allow-none]

Returns

a new GtkSourceCompletionItem.


gtk_source_completion_item_new_from_stock ()

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_new() instead.

Creates a new GtkSourceCompletionItem from a stock item. If label is NULL, the stock label will be used.

Parameters

label

The item label.

[allow-none]

text

The item text.

 

stock

The stock icon.

 

info

The item extra information.

[allow-none]

Returns

a new GtkSourceCompletionItem.

Types and Values

GtkSourceCompletionItem

typedef struct {
	GObject parent;

	GtkSourceCompletionItemPrivate *priv;
} GtkSourceCompletionItem;