diff options
author | Timm Bäder <mail@baedert.org> | 2017-02-23 17:07:52 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-03-02 15:16:08 +0100 |
commit | 7d85ffce33295028b8c5aef1b12aa3babf86b3b2 (patch) | |
tree | f724f333ed4c301ad2679971d74c36a78eab0753 /gtk | |
parent | b52966a318a26589b26598be9cda1628c04db3ff (diff) | |
download | gtk+-7d85ffce33295028b8c5aef1b12aa3babf86b3b2.tar.gz |
switch: remove unnecessary gtk_widget_show calls
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkswitch.c | 3 |
1 files changed, 0 insertions, 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); } /** |