aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/simple_dialog.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-16 22:19:59 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-16 22:19:59 +0000
commit57d93c85348121bd2c06c87df08eaddeb0741e3d (patch)
treecf0ea765a0b2b9d24cadc0ed52e2f0b0d23c9237 /gtk/simple_dialog.c
parentf28c4f91866d5b15074da29e09759c74e53a74c2 (diff)
temporarily fix a GTK1.x related bug
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14108 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/simple_dialog.c')
-rw-r--r--gtk/simple_dialog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/simple_dialog.c b/gtk/simple_dialog.c
index f889adcc69..63da30296d 100644
--- a/gtk/simple_dialog.c
+++ b/gtk/simple_dialog.c
@@ -376,7 +376,10 @@ void simple_dialog_set_cb(gpointer dialog, simple_dialog_cb_t callback_fct, gpoi
void simple_dialog_check_set(gpointer dialog, gchar *text) {
GtkWidget *ask_cb = OBJECT_GET_DATA(dialog, CHECK_BUTTON);
+#if GTK_MAJOR_VERSION >= 2
+ /* XXX - find a way to set the GtkButton label in GTK 1.x */
gtk_button_set_label(GTK_BUTTON(ask_cb), text);
+#endif
gtk_widget_show(ask_cb);
}