[gtk+] switch: remove unnecessary gtk_widget_show calls



commit 7d85ffce33295028b8c5aef1b12aa3babf86b3b2
Author: Timm Bäder <mail baedert org>
Date:   Thu Feb 23 17:07:52 2017 +0100

    switch: remove unnecessary gtk_widget_show calls

 gtk/gtkswitch.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index cc2e1ff..c84f57b 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);
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]