From dd48dfa756c15624cc53fbb471d1d87a437ab168 Mon Sep 17 00:00:00 2001 From: ulfl Date: Wed, 21 Jan 2004 03:54:32 +0000 Subject: use stock buttons whereever possible, added some ethereal specific stock icons git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9763 f5534014-38df-0310-8fa8-9805f1628bb7 --- gtk/tcp_graph.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'gtk/tcp_graph.c') diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c index 11f5ae3d80..1d0ad609aa 100644 --- a/gtk/tcp_graph.c +++ b/gtk/tcp_graph.c @@ -3,7 +3,7 @@ * By Pavel Mores * Win32 port: rwh@unifiedtech.com * - * $Id: tcp_graph.c,v 1.44 2004/01/13 08:25:00 guy Exp $ + * $Id: tcp_graph.c,v 1.45 2004/01/21 03:54:31 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -1037,13 +1037,8 @@ static void callback_create_help(GtkWidget *widget _U_, gpointer data _U_) gtk_text_buffer_set_text(buf, helptext, -1); #endif gtk_container_add (GTK_CONTAINER (scroll), text); -#if GTK_MAJOR_VERSION < 2 - close = gtk_button_new_with_label ("Close"); - gtk_box_pack_start (GTK_BOX (box), close, FALSE, FALSE, 0); -#else - close = gtk_button_new_from_stock(GTK_STOCK_CLOSE); + close = BUTTON_NEW_FROM_STOCK(GTK_STOCK_CLOSE); gtk_box_pack_start (GTK_BOX (box), close, FALSE, FALSE, 0); -#endif SIGNAL_CONNECT(close, "clicked", callback_close_help, toplevel); gtk_widget_show_all (toplevel); -- cgit v1.2.3