summaryrefslogtreecommitdiff
path: root/gtk/gtktogglebutton.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-19 18:21:56 +0200
committerJavier Jardón <jjardon@gnome.org>2010-10-26 06:07:42 +0200
commit49446ed57c68dc533fd086646f8061c1a41f7ba1 (patch)
treeb13ebb34793a6893021218ae864c97ac60d5f019 /gtk/gtktogglebutton.c
parenta93e79f8d2c4ec609f88330527a53811200578da (diff)
downloadgtk+-49446ed57c68dc533fd086646f8061c1a41f7ba1.tar.gz
gtktogglebutton: Add _gtk_toggle_button_set_active private accessor
It's needed by gtkradiobutton
Diffstat (limited to 'gtk/gtktogglebutton.c')
-rw-r--r--gtk/gtktogglebutton.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index e1a3c169bb..4e0c3d6f90 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -347,6 +347,13 @@ gtk_toggle_button_set_active (GtkToggleButton *toggle_button,
gtk_button_clicked (GTK_BUTTON (toggle_button));
}
+void
+_gtk_toggle_button_set_active (GtkToggleButton *toggle_button,
+ gboolean is_active)
+{
+ toggle_button->active = is_active;
+}
+
gboolean
gtk_toggle_button_get_active (GtkToggleButton *toggle_button)