aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/fc_stat.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-01-10 16:27:43 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-01-10 16:27:43 +0000
commit949f1f2d0761a4a9e536ea31adc5449ff478190c (patch)
treebc52be162a11e799bbde26b1ed627919a774bd90 /gtk/fc_stat.c
parent4222fa75091947bce3edf990bdb455b8cfd8fe35 (diff)
using button compatibility macros
svn path=/trunk/; revision=9636
Diffstat (limited to 'gtk/fc_stat.c')
-rw-r--r--gtk/fc_stat.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/fc_stat.c b/gtk/fc_stat.c
index 528a708179..68bfe0f667 100644
--- a/gtk/fc_stat.c
+++ b/gtk/fc_stat.c
@@ -1,7 +1,7 @@
/* fc_stat.c
* fc_stat 2003 Ronnie Sahlberg
*
- * $Id: fc_stat.c,v 1.17 2004/01/03 18:05:56 sharpe Exp $
+ * $Id: fc_stat.c,v 1.18 2004/01/10 16:27:41 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -291,11 +291,7 @@ gtk_fcstat_cb(GtkWidget *w _U_, gpointer d _U_)
gtk_widget_grab_default(start_button);
gtk_widget_show(start_button);
-#if GTK_MAJOR_VERSION < 2
- cancel_button=gtk_button_new_with_label("Cancel");
-#else
- cancel_button=gtk_button_new_from_stock(GTK_STOCK_CANCEL);
-#endif
+ cancel_button=BUTTON_NEW_FROM_STOCK(GTK_STOCK_CANCEL);
SIGNAL_CONNECT(cancel_button, "clicked", dlg_cancel_cb, dlg);
GTK_WIDGET_SET_FLAGS(cancel_button, GTK_CAN_DEFAULT);
gtk_box_pack_start(GTK_BOX(bbox), cancel_button, TRUE, TRUE, 0);