diff options
author | Paolo Borelli <pborelli@gnome.org> | 2015-08-15 12:34:43 +0200 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2015-08-15 12:35:26 +0200 |
commit | 4bea03e762ccd7529ab1e874ff23fa87786b19d5 (patch) | |
tree | 448ec3c66a5607002847a279afdcac03f6cda8b4 /gtksourceview | |
parent | d4afed983480b0eddd3cd7d60b6cef5675deef08 (diff) | |
download | gtksourceview-4bea03e762ccd7529ab1e874ff23fa87786b19d5.tar.gz |
Add more docs about using icons in the completion
Diffstat (limited to 'gtksourceview')
-rw-r--r-- | gtksourceview/gtksourcecompletionproposal.c | 9 | ||||
-rw-r--r-- | gtksourceview/gtksourcecompletionprovider.c | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gtksourceview/gtksourcecompletionproposal.c b/gtksourceview/gtksourcecompletionproposal.c index 8e063a33..2aeecb2f 100644 --- a/gtksourceview/gtksourcecompletionproposal.c +++ b/gtksourceview/gtksourcecompletionproposal.c @@ -28,6 +28,15 @@ * The proposal interface represents a completion item in the completion window. * It provides information on how to display the completion item and what action * should be taken when the completion item is activated. + * + * The proposal is displayed in the completion window with a label and + * optionally an icon. + * The label may be specified using plain text or markup by implementing + * the corresponding get function. Only one of those get functions + * should return a value different from %NULL. + * The icon may be specified as a #GdkPixbuf, as an icon name or as a #GIcon by + * implementing the corresponding get function. Only one of those get functions + * should return a value different from %NULL. */ #include "gtksourcecompletionproposal.h" diff --git a/gtksourceview/gtksourcecompletionprovider.c b/gtksourceview/gtksourcecompletionprovider.c index 1b3ad81b..248599dc 100644 --- a/gtksourceview/gtksourcecompletionprovider.c +++ b/gtksourceview/gtksourcecompletionprovider.c @@ -27,6 +27,12 @@ * @short_description: Completion provider interface * * You must implement this interface to provide proposals to #GtkSourceCompletion + * + * The provider may be displayed in the completion window as a header row, showing + * its name and optionally an icon. + * The icon may be specified as a #GdkPixbuf, as an icon name or as a #GIcon by + * implementing the corresponding get function. Only one of those get functions + * should return a value different from %NULL. */ #include "gtksourcecompletionprovider.h" |