diff options
author | Ted Gould <ted@canonical.com> | 2009-02-05 14:42:38 +0100 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-02-05 14:42:38 +0100 |
commit | 5cf3a7955ba22cd95f1deaa8860f4fdcbab2c8ad (patch) | |
tree | d33c0d89b423aa5cbec5e27a1345db4ce1a409c4 /libindicate | |
parent | 7ef6658a210f363bfe20563aad59b145d77ef43a (diff) | |
download | libayatana-indicator-5cf3a7955ba22cd95f1deaa8860f4fdcbab2c8ad.tar.gz libayatana-indicator-5cf3a7955ba22cd95f1deaa8860f4fdcbab2c8ad.tar.bz2 libayatana-indicator-5cf3a7955ba22cd95f1deaa8860f4fdcbab2c8ad.zip |
Adding in the API function to take and icon and display it. Just the prototype.
Diffstat (limited to 'libindicate')
-rw-r--r-- | libindicate/Makefile.am | 1 | ||||
-rw-r--r-- | libindicate/indicator.c | 7 | ||||
-rw-r--r-- | libindicate/indicator.h | 3 |
3 files changed, 11 insertions, 0 deletions
diff --git a/libindicate/Makefile.am b/libindicate/Makefile.am index 9fe05dc..3ceba08 100644 --- a/libindicate/Makefile.am +++ b/libindicate/Makefile.am @@ -90,6 +90,7 @@ Indicate-0.1.gir: $(irscanner_headers) --add-include-path=$(srcdir) \ --include=GObject-2.0 \ --include=GLib-2.0 \ + --include=GdkPixbuf-2.0 \ --library=indicate --pkg indicate \ --output Indicate-0.1.gir $(irscanner_headers) diff --git a/libindicate/indicator.c b/libindicate/indicator.c index 94af726..b77d7d7 100644 --- a/libindicate/indicator.c +++ b/libindicate/indicator.c @@ -209,6 +209,13 @@ indicate_indicator_set_property (IndicateIndicator * indicator, const gchar * ke return class->set_property(indicator, key, data); } +void +indicate_indicator_set_property_icon (IndicateIndicator * indicator, const gchar * key, const GdkPixbuf * data) +{ + + +} + const gchar * indicate_indicator_get_property (IndicateIndicator * indicator, const gchar * key) { diff --git a/libindicate/indicator.h b/libindicate/indicator.h index 8823757..0de5cfc 100644 --- a/libindicate/indicator.h +++ b/libindicate/indicator.h @@ -5,6 +5,8 @@ #include <glib.h> #include <glib-object.h> +#include <gdk-pixbuf/gdk-pixbuf.h> + G_BEGIN_DECLS /* Boilerplate */ @@ -68,6 +70,7 @@ void indicate_indicator_user_display (IndicateIndicator * indicator); /* Properties handling */ void indicate_indicator_set_property (IndicateIndicator * indicator, const gchar * key, const gchar * data); +void indicate_indicator_set_property_icon (IndicateIndicator * indicator, const gchar * key, const GdkPixbuf * data); const gchar * indicate_indicator_get_property (IndicateIndicator * indicator, const gchar * key); GPtrArray * indicate_indicator_list_properties (IndicateIndicator * indicator); |