diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2008-04-11 19:07:46 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2008-04-11 19:07:46 +0000 |
commit | 614d40cd7d40d566cea2bea72ff3a3c2ea8de8fe (patch) | |
tree | 0b79dc2519957ac81b447493b47518b8445887eb | |
parent | 4de04eae2743e2e535302ed5363e970b66419b69 (diff) |
replace TOGGLE_BUTTON_NEW_WITH_MNEMONIC with gtk_toggle_button_new_with_mnemonic
svn path=/trunk/; revision=24906
-rw-r--r-- | gtk/compat_macros.h | 3 | ||||
-rw-r--r-- | gtk/range_utils.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/gtk/compat_macros.h b/gtk/compat_macros.h index ea6c11f936..0b735cf684 100644 --- a/gtk/compat_macros.h +++ b/gtk/compat_macros.h @@ -166,9 +166,6 @@ gtk_radio_button_new_with_mnemonic_from_widget( \ gtk_radio_button_new_with_label_from_widget( \ radio_group ? GTK_RADIO_BUTTON(radio_group) : NULL, label_text) -#define TOGGLE_BUTTON_NEW_WITH_MNEMONIC(label_text, accel_group) \ -gtk_toggle_button_new_with_mnemonic(label_text) - /* for details, see "Pango Text Attribute Markup" */ /* maybe it's a good idea to keep this macro beyond the ongoing GTK1 cleanup! If we want to change the look of the dialog boxes primary line the other day, diff --git a/gtk/range_utils.c b/gtk/range_utils.c index 090e3bd888..247c0584db 100644 --- a/gtk/range_utils.c +++ b/gtk/range_utils.c @@ -411,13 +411,13 @@ GtkWidget *range_new(packet_range_t *range) gtk_container_border_width(GTK_CONTAINER(range_tb), 5); /* captured button */ - captured_bt = TOGGLE_BUTTON_NEW_WITH_MNEMONIC("_Captured", accel_group); + captured_bt = gtk_toggle_button_new_with_mnemonic("_Captured"); gtk_table_attach_defaults(GTK_TABLE(range_tb), captured_bt, 1, 2, 0, 1); SIGNAL_CONNECT(captured_bt, "toggled", toggle_captured_cb, range_tb); gtk_tooltips_set_tip (tooltips,captured_bt,("Process all the below chosen packets"), NULL); /* displayed button */ - displayed_bt = TOGGLE_BUTTON_NEW_WITH_MNEMONIC("_Displayed", accel_group); + displayed_bt = gtk_toggle_button_new_with_mnemonic("_Displayed"); gtk_table_attach_defaults(GTK_TABLE(range_tb), displayed_bt, 2, 3, 0, 1); SIGNAL_CONNECT(displayed_bt, "toggled", toggle_filtered_cb, range_tb); gtk_tooltips_set_tip (tooltips,displayed_bt,("Process only the below chosen packets, which also passes the current display filter"), NULL); |