[nautilus/wip/antoniof/experimental-gtk4-build: 18/52] scrolled_window_new without arguments




commit debd19d0f1f6caddd5a24434f4b1ef873fde45c9
Author: António Fernandes <antoniof gnome org>
Date:   Sun Dec 19 21:55:29 2021 +0000

    scrolled_window_new without arguments

 extensions/image-properties/nautilus-image-properties-page.c | 2 +-
 src/nautilus-files-view.c                                    | 2 +-
 src/nautilus-pathbar.c                                       | 2 +-
 src/nautilus-search-popover.c                                | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/extensions/image-properties/nautilus-image-properties-page.c 
b/extensions/image-properties/nautilus-image-properties-page.c
index 86d4ce9cd..812b9bdbd 100644
--- a/extensions/image-properties/nautilus-image-properties-page.c
+++ b/extensions/image-properties/nautilus-image-properties-page.c
@@ -91,7 +91,7 @@ append_item (NautilusImagesPropertiesPage *page,
 static void
 nautilus_image_properties_page_init (NautilusImagesPropertiesPage *self)
 {
-    self->page_widget = gtk_scrolled_window_new (NULL, NULL);
+    self->page_widget = gtk_scrolled_window_new ();
 
     g_object_set (self->page_widget,
                   "margin-bottom", 6,
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index 37a85678b..05066e732 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -9611,7 +9611,7 @@ nautilus_files_view_init (NautilusFilesView *view)
                            GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK);
 
     /* Scrolled Window */
-    priv->scrolled_window = gtk_scrolled_window_new (NULL, NULL);
+    priv->scrolled_window = gtk_scrolled_window_new ();
     gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolled_window),
                                     GTK_POLICY_AUTOMATIC,
                                     GTK_POLICY_AUTOMATIC);
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index cf08d2894..bcb2bde1e 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -225,7 +225,7 @@ nautilus_path_bar_init (NautilusPathBar *self)
     GtkBuilder *builder;
     g_autoptr (GError) error = NULL;
 
-    self->scrolled = gtk_scrolled_window_new (NULL, NULL);
+    self->scrolled = gtk_scrolled_window_new ();
     /* Scroll horizontally only and don't use internal scrollbar. */
     gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (self->scrolled),
                                     /* hscrollbar-policy */ GTK_POLICY_EXTERNAL,
diff --git a/src/nautilus-search-popover.c b/src/nautilus-search-popover.c
index bab56ddca..47aef127d 100644
--- a/src/nautilus-search-popover.c
+++ b/src/nautilus-search-popover.c
@@ -624,7 +624,7 @@ show_other_types_dialog (NautilusSearchPopover *popover)
                                           NULL);
     gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 600);
 
-    scrolled = gtk_scrolled_window_new (NULL, NULL);
+    scrolled = gtk_scrolled_window_new ();
     gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled),
                                     GTK_POLICY_AUTOMATIC,
                                     GTK_POLICY_AUTOMATIC);


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