aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/goto_dlg.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-01-10 16:27:43 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2004-01-10 16:27:43 +0000
commit86ff6c1fb72aacc8a304ea2e1847390abb487772 (patch)
treebc52be162a11e799bbde26b1ed627919a774bd90 /gtk/goto_dlg.c
parent25b9c92867655296ef0cc83a2d4a835f49b2906d (diff)
using button compatibility macros
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9636 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/goto_dlg.c')
-rw-r--r--gtk/goto_dlg.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gtk/goto_dlg.c b/gtk/goto_dlg.c
index ae58ae6b33..7938e04b52 100644
--- a/gtk/goto_dlg.c
+++ b/gtk/goto_dlg.c
@@ -1,7 +1,7 @@
/* goto_dlg.c
* Routines for "go to packet" window
*
- * $Id: goto_dlg.c,v 1.21 2003/11/28 19:02:41 ulfl Exp $
+ * $Id: goto_dlg.c,v 1.22 2004/01/10 16:27:41 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -80,22 +80,14 @@ goto_frame_cb(GtkWidget *w _U_, gpointer d _U_)
gtk_container_add(GTK_CONTAINER(main_vb), bbox);
gtk_widget_show(bbox);
-#if GTK_MAJOR_VERSION < 2
- ok_bt = gtk_button_new_with_label ("OK");
-#else
- ok_bt = gtk_button_new_from_stock(GTK_STOCK_OK);
-#endif
+ ok_bt = BUTTON_NEW_FROM_STOCK(GTK_STOCK_OK);
SIGNAL_CONNECT(ok_bt, "clicked", goto_frame_ok_cb, goto_frame_w);
GTK_WIDGET_SET_FLAGS(ok_bt, GTK_CAN_DEFAULT);
gtk_box_pack_start (GTK_BOX (bbox), ok_bt, TRUE, TRUE, 0);
gtk_widget_grab_default(ok_bt);
gtk_widget_show(ok_bt);
-#if GTK_MAJOR_VERSION < 2
- cancel_bt = gtk_button_new_with_label ("Cancel");
-#else
- cancel_bt = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
-#endif
+ cancel_bt = BUTTON_NEW_FROM_STOCK(GTK_STOCK_CANCEL);
SIGNAL_CONNECT(cancel_bt, "clicked", goto_frame_close_cb, goto_frame_w);
GTK_WIDGET_SET_FLAGS(cancel_bt, GTK_CAN_DEFAULT);
gtk_box_pack_start (GTK_BOX (bbox), cancel_bt, TRUE, TRUE, 0);