/pidgin/main: b9a5b8ddf92c: Add API to access the underlying Gtk...

Elliott Sales de Andrade qulogic at pidgin.im
Tue Aug 14 04:03:25 EDT 2012


Changeset: b9a5b8ddf92cd9884d8a595b6115e79780e4e06e
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-08-11 20:27 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/b9a5b8ddf92c

Description:

Add API to access the underlying GtkStatusIcon for the docklet.

Fixes #521.

diffstat:

 pidgin/gtkdocklet.c |  7 ++++++-
 pidgin/gtkdocklet.h |  5 +++++
 2 files changed, 11 insertions(+), 1 deletions(-)

diffs (39 lines):

diff --git a/pidgin/gtkdocklet.c b/pidgin/gtkdocklet.c
--- a/pidgin/gtkdocklet.c
+++ b/pidgin/gtkdocklet.c
@@ -323,7 +323,6 @@ docklet_show_pref_changed_cb(const char 
 		}
 		docklet_update_status();
 	}
-
 }
 
 /**************************************************************************
@@ -1012,6 +1011,12 @@ pidgin_docklet_get_handle()
 	return &i;
 }
 
+GtkStatusIcon *
+pidgin_docklet_get_status_icon(void)
+{
+	return docklet;
+}
+
 void
 pidgin_docklet_init()
 {
diff --git a/pidgin/gtkdocklet.h b/pidgin/gtkdocklet.h
--- a/pidgin/gtkdocklet.h
+++ b/pidgin/gtkdocklet.h
@@ -27,6 +27,11 @@
 
 G_BEGIN_DECLS
 
+/**
+ * Returns the GtkStatusIcon used for the docklet.
+ */
+GtkStatusIcon *pidgin_docklet_get_status_icon(void);
+
 void pidgin_docklet_init(void);
 void pidgin_docklet_uninit(void);
 void*pidgin_docklet_get_handle(void);



More information about the Commits mailing list