aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gui_utils.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2009-11-04 21:16:38 +0000
committerGerald Combs <gerald@wireshark.org>2009-11-04 21:16:38 +0000
commitd54eea534ea258db21b14933202ec8aefa2f66e9 (patch)
tree6fc1f8c82699f6ea4ca658e9dc8af63480ad49b3 /gtk/gui_utils.h
parentcd0147c0047bb13426fced79af28c6d49dbc975f (diff)
Add a convenience routine to convert pixbuf data generated by
gdk-pixbuf-csource to a GtkImage. Use it to load the expert indicator images. Add prettier indicator images. The "chat" indicator is more blue in order to differentiate it from the "none" indicator; make the chat text background more blue to match. svn path=/trunk/; revision=30825
Diffstat (limited to 'gtk/gui_utils.h')
-rw-r--r--gtk/gui_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gui_utils.h b/gtk/gui_utils.h
index cc288ccb0f..46e19aecb3 100644
--- a/gtk/gui_utils.h
+++ b/gtk/gui_utils.h
@@ -282,6 +282,12 @@ extern GtkWidget *xpm_to_widget(const char ** xpm);
*/
extern GtkWidget *xpm_to_widget_from_parent(GtkWidget *parent, const char ** xpm);
+/** Convert an pixbuf data to a GtkWidget
+ *
+ * @param pb_data Inline pixbuf data. This should be created with "gdk-pixbuf-csource --raw"
+ */
+extern GtkWidget *pixbuf_to_widget(const char * pb_data);
+
/** Copy a GString to the clipboard.
*
* @param str GString that is to be copied to the clipboard.