static void status_expert_new(void) { GtkWidget *expert_image; GtkTooltips *tooltips; tooltips = gtk_tooltips_new(); expert_image = pixbuf_to_widget(expert_error_pb_data); gtk_tooltips_set_tip(tooltips, expert_image, "ERROR is the highest expert info level", NULL); gtk_widget_show(expert_image); expert_info_error = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(expert_info_error), expert_image); g_signal_connect(expert_info_error, "button_press_event", G_CALLBACK(expert_comp_dlg_cb), NULL); expert_image = pixbuf_to_widget(expert_warn_pb_data); gtk_tooltips_set_tip(tooltips, expert_image, "WARNING is the highest expert info level", NULL); gtk_widget_show(expert_image); expert_info_warn = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(expert_info_warn), expert_image); g_signal_connect(expert_info_warn, "button_press_event", G_CALLBACK(expert_comp_dlg_cb), NULL); expert_image = pixbuf_to_widget(expert_note_pb_data); gtk_tooltips_set_tip(tooltips, expert_image, "NOTE is the highest expert info level", NULL); gtk_widget_show(expert_image); expert_info_note = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(expert_info_note), expert_image); g_signal_connect(expert_info_note, "button_press_event", G_CALLBACK(expert_comp_dlg_cb), NULL); expert_image = pixbuf_to_widget(expert_chat_pb_data); gtk_tooltips_set_tip(tooltips, expert_image, "CHAT is the highest expert info level", NULL); gtk_widget_show(expert_image); expert_info_chat = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(expert_info_chat), expert_image); g_signal_connect(expert_info_chat, "button_press_event", G_CALLBACK(expert_comp_dlg_cb), NULL); expert_image = pixbuf_to_widget(expert_none_pb_data); gtk_tooltips_set_tip(tooltips, expert_image, "No expert info", NULL); gtk_widget_show(expert_image); expert_info_none = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(expert_info_none), expert_image); g_signal_connect(expert_info_none, "button_press_event", G_CALLBACK(expert_comp_dlg_cb), NULL); gtk_widget_show(expert_info_none); }
* "About Wireshark" window up, we just pop up the existing one, rather than * creating a new one. */ static GtkWidget *about_wireshark_w; static void about_wireshark(GtkWidget *parent _U_, GtkWidget *main_vb) { GtkWidget *msg_label, *icon; gchar *message; const char *title = "Network Protocol Analyzer"; /*icon = xpm_to_widget_from_parent(parent, wssplash_xpm);*/ #ifdef HAVE_GDK_GRESOURCE icon = pixbuf_to_widget("/org/wireshark/image/wssplash_dev.png"); #else icon = pixbuf_to_widget(wssplash_pb_data); #endif gtk_box_pack_start(GTK_BOX(main_vb), icon, TRUE, TRUE, 0); msg_label = gtk_label_new(title); message = g_strdup_printf("<span size=\"x-large\" weight=\"bold\">%s</span>", title); gtk_label_set_markup(GTK_LABEL(msg_label), message); g_free(message); gtk_box_pack_start(GTK_BOX(main_vb), msg_label, TRUE, TRUE, 0); } static void
* that if somebody tries to do "About Wireshark" while there's already an * "About Wireshark" window up, we just pop up the existing one, rather than * creating a new one. */ static GtkWidget *about_wireshark_w; static void about_wireshark(GtkWidget *parent _U_, GtkWidget *main_vb) { GtkWidget *msg_label, *icon; gchar *message; const char *title = "Network Protocol Analyzer"; /*icon = xpm_to_widget_from_parent(parent, wssplash_xpm);*/ icon = pixbuf_to_widget(wssplash_pb_data); gtk_box_pack_start(GTK_BOX(main_vb), icon, TRUE, TRUE, 0); msg_label = gtk_label_new(title); message = g_strdup_printf("<span size=\"x-large\" weight=\"bold\">%s</span>", title); gtk_label_set_markup(GTK_LABEL(msg_label), message); g_free(message); gtk_box_pack_start(GTK_BOX(main_vb), msg_label, TRUE, TRUE, 0); } static void splash_update_label(GtkWidget *win, const char *message) { GtkWidget *main_lb;