From 8fd5c30b2fff090657936686d5c18d95157f4b4d Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 5 Jun 2001 18:22:30 +0000 Subject: Use new mnemonic convenience functions 2001-06-05 Havoc Pennington * gtk/gtkcolorsel.c: Use new mnemonic convenience functions Applying patch from Jeff Franks, with function docs added. * gtk/gtkcheckbutton.c (gtk_check_button_new_with_mnemonic): remove call to set_mnemonic_widget, change docs a bit. * gtk/gtkimagemenuitem.c (gtk_image_menu_item_new_with_mnemonic): new function * gtk/gtkcheckmenuitem.c (gtk_check_menu_item_new_with_mnemonic): new function * gtk/gtkmenuitem.c (gtk_menu_item_new_with_mnemonic): new function * gtk/gtkradiobutton.c (gtk_radio_button_new_with_mnemonic): new function (gtk_radio_button_new_with_mnemonic_from_widget): new function * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_new_with_mnemonic): new function * gtk/gtktogglebutton.c (gtk_toggle_button_new_with_mnemonic): new function * gtk/gtklabel.c (gtk_label_new_with_mnemonic): Improve docs on auto-selection of mnemonic widget. --- gtk/gtktogglebutton.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'gtk/gtktogglebutton.h') diff --git a/gtk/gtktogglebutton.h b/gtk/gtktogglebutton.h index c00b98bad..40c8cd7b4 100644 --- a/gtk/gtktogglebutton.h +++ b/gtk/gtktogglebutton.h @@ -67,19 +67,21 @@ struct _GtkToggleButtonClass }; -GtkType gtk_toggle_button_get_type (void) G_GNUC_CONST; -GtkWidget* gtk_toggle_button_new (void); -GtkWidget* gtk_toggle_button_new_with_label (const gchar *label); -void gtk_toggle_button_set_mode (GtkToggleButton *toggle_button, - gboolean draw_indicator); -void gtk_toggle_button_set_active (GtkToggleButton *toggle_button, - gboolean is_active); -gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button); -void gtk_toggle_button_toggled (GtkToggleButton *toggle_button); - -void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button, - gboolean setting); -gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button); +GtkType gtk_toggle_button_get_type (void) G_GNUC_CONST; + +GtkWidget* gtk_toggle_button_new (void); +GtkWidget* gtk_toggle_button_new_with_label (const gchar *label); +GtkWidget* gtk_toggle_button_new_with_mnemonic (const gchar *label); +void gtk_toggle_button_set_mode (GtkToggleButton *toggle_button, + gboolean draw_indicator); +void gtk_toggle_button_set_active (GtkToggleButton *toggle_button, + gboolean is_active); +gboolean gtk_toggle_button_get_active (GtkToggleButton *toggle_button); +void gtk_toggle_button_toggled (GtkToggleButton *toggle_button); +void gtk_toggle_button_set_inconsistent (GtkToggleButton *toggle_button, + gboolean setting); +gboolean gtk_toggle_button_get_inconsistent (GtkToggleButton *toggle_button); + #ifdef __cplusplus } -- cgit v1.2.1