diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-01-10 16:27:43 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-01-10 16:27:43 +0000 |
commit | 949f1f2d0761a4a9e536ea31adc5449ff478190c (patch) | |
tree | bc52be162a11e799bbde26b1ed627919a774bd90 /gtk/bootp_stat.c | |
parent | 4222fa75091947bce3edf990bdb455b8cfd8fe35 (diff) |
using button compatibility macros
svn path=/trunk/; revision=9636
Diffstat (limited to 'gtk/bootp_stat.c')
-rw-r--r-- | gtk/bootp_stat.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/bootp_stat.c b/gtk/bootp_stat.c index fafafe9b32..2f32082d63 100644 --- a/gtk/bootp_stat.c +++ b/gtk/bootp_stat.c @@ -1,7 +1,7 @@ /* bootp_stat.c * boop_stat 2003 Jean-Michel FAYARD * - * $Id: bootp_stat.c,v 1.10 2004/01/03 18:05:55 sharpe Exp $ + * $Id: bootp_stat.c,v 1.11 2004/01/10 16:27:39 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -337,11 +337,7 @@ gtk_dhcpstat_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); |