Rather tan trying to replace it go for the simpler xpm_to_widget() The
result looks the same to me.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38549
f5534014-38df-0310-8fa8-
9805f1628bb7
gchar *message;
const char *title = "Network Protocol Analyzer";
- icon = xpm_to_widget_from_parent(parent, wssplash_xpm);
+ /*icon = xpm_to_widget_from_parent(parent, wssplash_xpm);*/
+ icon = xpm_to_widget(wssplash_xpm);
+
gtk_container_add(GTK_CONTAINER(main_vb), icon);
msg_label = gtk_label_new(title);
gtk_widget_destroy(win);
}
-
+#if 0
+/* Do we need this one ? */
/* convert an xpm to a GtkWidget, using the window settings from it's parent */
/* (be sure that the parent window is already being displayed) */
GtkWidget *xpm_to_widget_from_parent(GtkWidget *parent, const char ** xpm) {
return gtk_image_new_from_pixmap (pixmap, bitmap);
}
-
+#endif
/* convert an xpm to a GtkWidget */
GtkWidget *xpm_to_widget(const char ** xpm) {
* @param xpm the character array containing the picture
* @return a newly created GtkWidget showing the picture
*/
-extern GtkWidget *xpm_to_widget_from_parent(GtkWidget *parent, const char ** xpm);
+/*extern GtkWidget *xpm_to_widget_from_parent(GtkWidget *parent, const char ** xpm);*/
/** Convert an pixbuf data to a GtkWidget
*
item_hb = gtk_hbox_new(FALSE, 0);
gtk_box_pack_start(GTK_BOX(item_vb), item_hb, FALSE, FALSE, 10);
- icon = xpm_to_widget_from_parent(top_level, wssplash_xpm);
+ /*icon = xpm_to_widget_from_parent(top_level, wssplash_xpm);*/
+ icon = xpm_to_widget(wssplash_xpm);
gtk_box_pack_start(GTK_BOX(item_hb), icon, FALSE, FALSE, 10);
header_lb = gtk_label_new(NULL);