From 7d85ffce33295028b8c5aef1b12aa3babf86b3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 23 Feb 2017 17:07:52 +0100 Subject: [PATCH] switch: remove unnecessary gtk_widget_show calls --- gtk/gtkswitch.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c index cc2e1ff96f..c84f57be5e 100644 --- a/gtk/gtkswitch.c +++ b/gtk/gtkswitch.c @@ -817,7 +817,6 @@ gtk_switch_init (GtkSwitch *self) priv->slider = g_object_new (GTK_TYPE_BUTTON, "css-name", "slider", NULL); gtk_widget_set_parent (priv->slider, GTK_WIDGET (self)); - gtk_widget_show (priv->slider); gesture = gtk_gesture_multi_press_new (GTK_WIDGET (self)); gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (gesture), FALSE); @@ -848,14 +847,12 @@ gtk_switch_init (GtkSwitch *self) */ priv->on_label = gtk_label_new (C_("switch", "ON")); gtk_widget_set_parent (priv->on_label, GTK_WIDGET (self)); - gtk_widget_show (priv->on_label); /* Translators: if the "off" state label requires more than three * glyphs then use WHITE CIRCLE (U+25CB) as the text for the state */ priv->off_label = gtk_label_new (C_("switch", "OFF")); gtk_widget_set_parent (priv->off_label, GTK_WIDGET (self)); - gtk_widget_show (priv->off_label); } /**