summaryrefslogtreecommitdiff
path: root/gtk/capture_info_dlg.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/capture_info_dlg.c')
-rw-r--r--gtk/capture_info_dlg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/capture_info_dlg.c b/gtk/capture_info_dlg.c
index 299d448026..39a7569d58 100644
--- a/gtk/capture_info_dlg.c
+++ b/gtk/capture_info_dlg.c
@@ -128,9 +128,11 @@ capture_options *capture_opts)
gchar *cap_w_title;
gchar *title_iface;
gchar *descr;
+#if !GTK_CHECK_VERSION(2,14,0)
GtkTooltips *tooltips;
tooltips = gtk_tooltips_new ();
+#endif
info = g_malloc0(sizeof(capture_info_ui_t));
info->counts[0].title = "Total";
@@ -272,7 +274,11 @@ capture_options *capture_opts)
g_signal_connect(info->cap_w, "delete_event", G_CALLBACK(capture_info_delete_cb), capture_opts);
ci_help = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_HELP);
+#if GTK_CHECK_VERSION(2,14,0)
+ gtk_widget_set_tooltip_text(ci_help, "Get help about this dialog");
+#else
gtk_tooltips_set_tip (tooltips, ci_help, ("Get help about this dialog"), NULL);
+#endif
g_signal_connect(ci_help, "clicked", G_CALLBACK(topic_cb), (gpointer)HELP_CAPTURE_INFO_DIALOG);
gtk_widget_show(info->cap_w);