diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-03-26 19:51:33 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-03-26 19:51:33 +0000 |
commit | d1b87423df7aca95c50e04530316f9b7447f13ff (patch) | |
tree | c06a943a3aad63ec61a1e85bdcdf20f721ef93a8 /ui/gtk/gui_utils.c | |
parent | 67ffb10e649188e64cdb58419ffecfba20e19c0d (diff) | |
download | wireshark-d1b87423df7aca95c50e04530316f9b7447f13ff.tar.gz |
More icon updates.
Use the PNG versions of the new application icons.
Remove the XPM versions of the Wireshark application and capture icons.
To paraphrase Zoidberg, XPMs are bad and we should feel bad. Remove
xpm_to_widget_from_parent (which we weren't using and likely won't use
in the future).
Replace wiki_24.xpm (which was a GNOME or GTK+ stock icon IIRC) with the
16x16 and 24x24 versions emblem-web.png from GNOME icon theme 2.30.3.
This version was used specifically because it's GPLv2 and later versions
are GPLv3.
Update image/README.
svn path=/trunk/; revision=48565
Diffstat (limited to 'ui/gtk/gui_utils.c')
-rw-r--r-- | ui/gtk/gui_utils.c | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/ui/gtk/gui_utils.c b/ui/gtk/gui_utils.c index 410ecb680c..66b69a9a0c 100644 --- a/ui/gtk/gui_utils.c +++ b/ui/gtk/gui_utils.c @@ -54,10 +54,7 @@ #include "ui/gtk/old-gtk-compat.h" -#include "image/wsicon16.xpm" -#include "image/wsicon32.xpm" -#include "image/wsicon48.xpm" -#include "image/wsicon64.xpm" +#include "ui/gtk/wsicon.h" #ifdef _WIN32 #include <windows.h> @@ -116,13 +113,13 @@ window_icon_realize_cb(GtkWidget *win, GList *ws_icon_list = NULL; GdkPixbuf *icon; - icon = gdk_pixbuf_new_from_xpm_data((const char **)wsicon16_xpm); + icon = gdk_pixbuf_new_from_inline(-1, wsicon_16_pb_data, FALSE, NULL); ws_icon_list = g_list_append(ws_icon_list, icon); - icon = gdk_pixbuf_new_from_xpm_data((const char **)wsicon32_xpm); + icon = gdk_pixbuf_new_from_inline(-1, wsicon_32_pb_data, FALSE, NULL); ws_icon_list = g_list_append(ws_icon_list, icon); - icon = gdk_pixbuf_new_from_xpm_data((const char **)wsicon48_xpm); + icon = gdk_pixbuf_new_from_inline(-1, wsicon_48_pb_data, FALSE, NULL); ws_icon_list = g_list_append(ws_icon_list, icon); - icon = gdk_pixbuf_new_from_xpm_data((const char **)wsicon64_xpm); + icon = gdk_pixbuf_new_from_inline(-1, wsicon_64_pb_data, FALSE, NULL); ws_icon_list = g_list_append(ws_icon_list, icon); gtk_window_set_icon_list(GTK_WINDOW(win), ws_icon_list); @@ -454,26 +451,6 @@ window_destroy(GtkWidget *win) gtk_widget_destroy(win); } -#if 0 -/* Do we need this one ? */ -/* convert an xpm to a GtkWidget, using the window settings from its parent */ -/* (be sure that the parent window is already being displayed) */ -GtkWidget * -xpm_to_widget_from_parent(GtkWidget *parent, - const char **xpm) -{ - GdkPixbuf *pixbuf; - GdkPixmap *pixmap; - GdkBitmap *bitmap; - - - pixbuf = gdk_pixbuf_new_from_xpm_data(xpm); - gdk_pixbuf_render_pixmap_and_mask_for_colormap(pixbuf, gtk_widget_get_colormap(parent), &pixmap, &bitmap, 128); - - return gtk_image_new_from_pixmap(pixmap, bitmap); -} -#endif - static GtkWidget * _gtk_image_new_from_pixbuf_unref(GdkPixbuf *pixbuf) { GtkWidget *widget; |