[epiphany/wip/exalm/cleanups: 12/14] find-toolbar: Remove a useless size group




commit 74f3a101ca62268aaf3ed8eb91bc98dc2b8ab152
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Nov 29 18:51:41 2021 +0500

    find-toolbar: Remove a useless size group
    
    Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1034>

 embed/ephy-find-toolbar.c | 8 --------
 1 file changed, 8 deletions(-)
---
diff --git a/embed/ephy-find-toolbar.c b/embed/ephy-find-toolbar.c
index d8ec5a395..a02ecc51d 100644
--- a/embed/ephy-find-toolbar.c
+++ b/embed/ephy-find-toolbar.c
@@ -373,13 +373,10 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar)
 {
   GtkWidget *clamp;
   GtkWidget *box;
-  GtkSizeGroup *size_group;
 
   toolbar->search_bar = hdy_search_bar_new ();
   gtk_container_add (GTK_CONTAINER (toolbar), toolbar->search_bar);
 
-  size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
-
   clamp = GTK_WIDGET (hdy_clamp_new ());
   hdy_clamp_set_maximum_size (HDY_CLAMP (clamp), 400);
   hdy_clamp_set_tightening_threshold (HDY_CLAMP (clamp), 300);
@@ -417,11 +414,6 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar)
   gtk_container_add (GTK_CONTAINER (box), toolbar->next);
   gtk_widget_set_sensitive (toolbar->next, FALSE);
 
-  gtk_size_group_add_widget (size_group, GTK_WIDGET (toolbar->entry));
-  gtk_size_group_add_widget (size_group, toolbar->next);
-  gtk_size_group_add_widget (size_group, toolbar->prev);
-  g_object_unref (size_group);
-
   /* connect signals */
   g_signal_connect (toolbar->entry, "icon-release",
                     G_CALLBACK (search_entry_clear_cb), toolbar);


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