static void status_expert_new(void) { GtkWidget *expert_image; GtkTooltips *tooltips; tooltips = gtk_tooltips_new(); expert_image = xpm_to_widget_from_parent(top_level, expert_error_xpm); 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 = xpm_to_widget_from_parent(top_level, expert_warn_xpm); 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 = xpm_to_widget_from_parent(top_level, expert_note_xpm); 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 = xpm_to_widget_from_parent(top_level, expert_chat_xpm); 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 = xpm_to_widget_from_parent(top_level, expert_none_xpm); 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); }
static void about_wireshark(GtkWidget *parent, GtkWidget *main_vb) { GtkWidget *msg_label, *icon; gchar *message; const char *title = "Network Protocol Analyzer"; icon = xpm_to_widget_from_parent(parent, wssplash_xpm); gtk_container_add(GTK_CONTAINER(main_vb), icon); 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_container_add(GTK_CONTAINER(main_vb), msg_label); }