[nautilus/wip/antoniof/gtk4-preparation-discontinued-api: 14/14] toolbar: Stop using ::populate-popup




commit b09d60d47a4a41f6d79f86e788c2077f00f43062
Author: António Fernandes <antoniof gnome org>
Date:   Sat Jan 1 19:52:46 2022 +0000

    toolbar: Stop using ::populate-popup
    
    The signal is gone in GTK4 and focus handling is different there so this
    either wouldn't be necessary, or a completely different GTK 4-only
    solution will need to be added after the switch.

 src/nautilus-toolbar.c | 16 ----------------
 1 file changed, 16 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index 3ef3b6653..2f1987d75 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -809,20 +809,6 @@ on_location_entry_close (GtkWidget       *close_button,
     nautilus_toolbar_set_show_location_entry (self, FALSE);
 }
 
-static gboolean
-on_location_entry_populate_popup (GtkEntry  *entry,
-                                  GtkWidget *widget,
-                                  gpointer   user_data)
-{
-    NautilusToolbar *toolbar;
-
-    toolbar = user_data;
-
-    toolbar->location_entry_should_auto_hide = FALSE;
-
-    return GDK_EVENT_PROPAGATE;
-}
-
 static void
 on_location_entry_focus_changed (GObject    *object,
                                  GParamSpec *pspec,
@@ -918,8 +904,6 @@ nautilus_toolbar_constructed (GObject *object)
                       (GCallback) gtk_widget_grab_focus, NULL);
     g_signal_connect_swapped (self->operations_popover, "closed",
                               (GCallback) gtk_widget_grab_focus, self);
-    g_signal_connect (self->location_entry, "populate-popup",
-                      G_CALLBACK (on_location_entry_populate_popup), self);
     g_signal_connect (self->location_entry, "notify::has-focus",
                       G_CALLBACK (on_location_entry_focus_changed), self);
 


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