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/wsp_stat.c | |
parent | 4222fa75091947bce3edf990bdb455b8cfd8fe35 (diff) | |
download | wireshark-949f1f2d0761a4a9e536ea31adc5449ff478190c.tar.gz wireshark-949f1f2d0761a4a9e536ea31adc5449ff478190c.tar.bz2 wireshark-949f1f2d0761a4a9e536ea31adc5449ff478190c.zip |
using button compatibility macros
svn path=/trunk/; revision=9636
Diffstat (limited to 'gtk/wsp_stat.c')
-rw-r--r-- | gtk/wsp_stat.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/wsp_stat.c b/gtk/wsp_stat.c index 435ec4e12b..e19e05e397 100644 --- a/gtk/wsp_stat.c +++ b/gtk/wsp_stat.c @@ -1,7 +1,7 @@ /* wsp_stat.c * wsp_stat 2003 Jean-Michel FAYARD * - * $Id: wsp_stat.c,v 1.10 2004/01/03 18:05:57 sharpe Exp $ + * $Id: wsp_stat.c,v 1.11 2004/01/10 16:27:43 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -486,11 +486,7 @@ gtk_wspstat_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); |