[gtk] textview: Remove some unnecessary gtk_widget_show() calls



commit eea76e8cce65485c7057f9adc6bbd87730762d5a
Author: Timm Bäder <mail baedert org>
Date:   Sat Jul 27 09:19:26 2019 +0200

    textview: Remove some unnecessary gtk_widget_show() calls
    
    Widgets are visible by default.

 gtk/gtktextview.c | 3 ---
 1 file changed, 3 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 382f6f72fb..602d507683 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8903,12 +8903,10 @@ append_bubble_item (GtkTextView *text_view,
     item = gtk_button_new ();
   gtk_widget_set_focus_on_click (item, FALSE);
   image = gtk_image_new_from_icon_name (icon_name);
-  gtk_widget_show (image);
   gtk_container_add (GTK_CONTAINER (item), image);
   gtk_style_context_add_class (gtk_widget_get_style_context (item), "image-button");
   gtk_actionable_set_action_name (GTK_ACTIONABLE (item), action_name);
 
-  gtk_widget_show (GTK_WIDGET (item));
   gtk_container_add (GTK_CONTAINER (toolbar), item);
 }
 
@@ -8939,7 +8937,6 @@ gtk_text_view_selection_bubble_popup_show (gpointer user_data)
 
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
   g_object_set (box, "margin", 10, NULL);
-  gtk_widget_show (box);
   toolbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   gtk_style_context_add_class (gtk_widget_get_style_context (toolbar), "linked");
   gtk_container_add (GTK_CONTAINER (priv->selection_bubble), box);


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