Use 'wireshark' icon from theme

This makes Wireshark able to use SVG icon when it is installed

svn path=/trunk/; revision=41329
This commit is contained in:
Balint Reczey 2012-03-03 15:40:38 +00:00
parent 25ae6ac329
commit 104bab54f1
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ window_icon_realize_cb (GtkWidget *win, gpointer data _U_)
icon = gdk_pixbuf_new_from_xpm_data ((const char **) wsicon64_xpm);
ws_icon_list = g_list_append (ws_icon_list, icon);
gtk_window_set_icon_list(GTK_WINDOW(win), ws_icon_list);
/* set icon by name, this allows us to use even SVG icon if it is present */
gtk_window_set_icon_name(GTK_WINDOW(win), "wireshark");
#endif
}