[nautilus/wip/antoniof/new_open_with: 1/31] properties-window: drop unused grid variable




commit ec9b73e4ba01804ce2822eaaf5eb50922985f1ff
Author: Peter Eisenmann <p3732 getgoogleoff me>
Date:   Thu Oct 21 01:09:04 2021 +0200

    properties-window: drop unused grid variable
    
    The basic_grid variable was read from the .ui file but never actually
    was used, only passed on. This drops the variable.

 src/nautilus-properties-window.c | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 0335a6d61..f83e57f43 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -87,8 +87,6 @@ struct _NautilusPropertiesWindow
     GtkWidget *icon_button_image;
     GtkWidget *icon_chooser;
 
-    GtkGrid *basic_grid;
-
     GtkLabel *name_title_label;
     GtkStack *name_stack;
     GtkWidget *name_field;
@@ -2148,8 +2146,7 @@ schedule_directory_contents_update (NautilusPropertiesWindow *self)
 }
 
 static void
-setup_contents_field (NautilusPropertiesWindow *self,
-                      GtkGrid                  *grid)
+setup_contents_field (NautilusPropertiesWindow *self)
 {
     g_list_foreach (self->target_files,
                     (GFunc) start_deep_count_for_file,
@@ -2629,18 +2626,12 @@ open_in_disks (GtkButton                *button,
 static void
 setup_basic_page (NautilusPropertiesWindow *self)
 {
-    GtkGrid *grid;
-
     /* Icon pixmap */
 
     setup_image_widget (self, should_show_custom_icon_buttons (self));
 
     self->icon_chooser = NULL;
 
-    /* Grid */
-
-    grid = self->basic_grid;
-
     update_name_field (self);
 
     g_signal_connect_object (self->name_field, "notify::has-focus",
@@ -2675,7 +2666,7 @@ setup_basic_page (NautilusPropertiesWindow *self)
     {
         gtk_widget_show (self->contents_title_label);
         gtk_widget_show (self->contents_value_label);
-        setup_contents_field (self, grid);
+        setup_contents_field (self);
     }
     else
     {
@@ -5319,7 +5310,6 @@ nautilus_properties_window_class_init (NautilusPropertiesWindowClass *klass)
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, icon_image);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, icon_button);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, icon_button_image);
-    gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, basic_grid);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, name_title_label);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, name_stack);
     gtk_widget_class_bind_template_child (widget_class, NautilusPropertiesWindow, name_field);


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