diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-02-16 19:26:08 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-02-16 19:26:08 +0000 |
commit | 9bdecea98c5ca09f6f77341daea8ef75e3241718 (patch) | |
tree | 1b042223a2825c5ad692475e6d23ea7a5bf3b0fc /gtk | |
parent | 82c78778ae49ea5c09bd1caa237a98ce4b9c79ac (diff) | |
download | wireshark-9bdecea98c5ca09f6f77341daea8ef75e3241718.tar.gz |
Fix compilation on Windows.
svn path=/trunk/; revision=35967
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/capture_dlg.c | 14 | ||||
-rw-r--r-- | gtk/capture_if_dlg.c | 2 |
2 files changed, 15 insertions, 1 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 7e7744d648..ccc04ff332 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -1171,13 +1171,23 @@ capture_remote_cb(GtkWidget *w, gboolean focus_username) ok_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_OK); g_signal_connect(ok_bt, "clicked", G_CALLBACK(capture_remote_ok_cb), remote_w); +#if GTK_CHECK_VERSION(2,12,0) + gtk_widget_set_tooltip_text(ok_bt, + "Accept remote host parameters and lookup " + "remote interfaces."); +#else gtk_tooltips_set_tip(tooltips, ok_bt, "Accept remote host parameters and lookup " "remote interfaces.", NULL); +#endif cancel_bt = g_object_get_data(G_OBJECT(bbox), GTK_STOCK_CANCEL); +#if GTK_CHECK_VERSION(2,12,0) + gtk_widget_set_tooltip_text(cancel_bt, "Cancel and exit dialog."); +#else gtk_tooltips_set_tip(tooltips, cancel_bt, "Cancel and exit dialog.", NULL); +#endif window_set_cancel_button(remote_w, cancel_bt, capture_remote_cancel_cb); if (focus_username) { @@ -2111,7 +2121,11 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) #ifdef HAVE_PCAP_REMOTE remote_bt = gtk_button_new_with_label("Remote Settings"); +#if GTK_CHECK_VERSION(2,12,0) + gtk_widget_set_tooltip_text(remote_bt, "Various settings for remote capture."); +#else gtk_tooltips_set_tip(tooltips, remote_bt, "Various settings for remote capture.", NULL); +#endif /* Both the callback and the data are global */ g_signal_connect(remote_bt,"clicked", G_CALLBACK(options_remote_cb),NULL); diff --git a/gtk/capture_if_dlg.c b/gtk/capture_if_dlg.c index a69420240b..eba82c5b96 100644 --- a/gtk/capture_if_dlg.c +++ b/gtk/capture_if_dlg.c @@ -859,7 +859,7 @@ capture_if_cb(GtkWidget *w _U_, gpointer d _U_) #ifdef _WIN32 if_dlg_data->details_bt = gtk_button_new_from_stock(WIRESHARK_STOCK_CAPTURE_DETAILS); #if GTK_CHECK_VERSION(2,12,0) - gtk_widget_set_tooltip-text(if_dlg_data->details_bt, "Open the capture details dialog of this interface."); + gtk_widget_set_tooltip_text(if_dlg_data->details_bt, "Open the capture details dialog of this interface."); #else gtk_tooltips_set_tip(tooltips, if_dlg_data->details_bt, "Open the capture details dialog of this interface.", NULL); |