summaryrefslogtreecommitdiff
path: root/gtk/gtktogglebutton.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-10-08 05:07:55 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-10-08 05:07:55 +0000
commit07e7719441f5927bc3c482717fc53f8529186e3a (patch)
tree4baea8ab1c47987dc80120c67cb16be141a16b8d /gtk/gtktogglebutton.c
parente4581869b4a93ab882439673159a8f77b2396e57 (diff)
downloadgdk-pixbuf-07e7719441f5927bc3c482717fc53f8529186e3a.tar.gz
Apply a cleanup patch by Kjartan Maraas (#341812)
2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
Diffstat (limited to 'gtk/gtktogglebutton.c')
-rw-r--r--gtk/gtktogglebutton.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c
index 1003cb920..cd99501c9 100644
--- a/gtk/gtktogglebutton.c
+++ b/gtk/gtktogglebutton.c
@@ -76,12 +76,10 @@ gtk_toggle_button_class_init (GtkToggleButtonClass *class)
{
GObjectClass *gobject_class;
GtkWidgetClass *widget_class;
- GtkContainerClass *container_class;
GtkButtonClass *button_class;
gobject_class = G_OBJECT_CLASS (class);
widget_class = (GtkWidgetClass*) class;
- container_class = (GtkContainerClass*) class;
button_class = (GtkButtonClass*) class;
gobject_class->set_property = gtk_toggle_button_set_property;
@@ -243,12 +241,8 @@ void
gtk_toggle_button_set_mode (GtkToggleButton *toggle_button,
gboolean draw_indicator)
{
- GtkWidget *widget;
-
g_return_if_fail (GTK_IS_TOGGLE_BUTTON (toggle_button));
- widget = GTK_WIDGET (toggle_button);
-
draw_indicator = draw_indicator ? TRUE : FALSE;
if (toggle_button->draw_indicator != draw_indicator)