summaryrefslogtreecommitdiff
path: root/gtk/gtkcheckbutton.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-11-19 19:56:25 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:39:20 +0100
commit756e20f58c59c606d3bf62e1369127fa96538b54 (patch)
tree4a98068657e7967682338fecbe9c0d633a9d4488 /gtk/gtkcheckbutton.c
parent84d586043e50b833eb59bfe80d9bb267c147efb9 (diff)
downloadgtk+-756e20f58c59c606d3bf62e1369127fa96538b54.tar.gz
Make "button" class depend on mode for GtkToggleButtons
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r--gtk/gtkcheckbutton.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 358406099b..a27290432e 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -93,18 +93,9 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
static void
gtk_check_button_init (GtkCheckButton *check_button)
{
- GtkStyleContext *context;
-
gtk_widget_set_has_window (GTK_WIDGET (check_button), FALSE);
gtk_widget_set_receives_default (GTK_WIDGET (check_button), FALSE);
gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (check_button), TRUE);
-
- /* Remove the "button" class added in GtkButton constructor,
- * since this widget implementation doesn't look like a button
- * at all.
- */
- context = gtk_widget_get_style_context (GTK_WIDGET (check_button));
- gtk_style_context_remove_class (context, GTK_STYLE_CLASS_BUTTON);
}
GtkWidget*