summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-01-01 19:52:46 +0000
committerAntónio Fernandes <antoniof@gnome.org>2022-01-01 21:58:06 +0000
commitbc61abdc9c62252bd649c65e2acab9396303848a (patch)
tree39b5cfb87000f9aaa157413e8392709471a7cf57
parent9fd937a8038737e2cc64377ffb98d00962927cf2 (diff)
downloadnautilus-bc61abdc9c62252bd649c65e2acab9396303848a.tar.gz
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.
-rw-r--r--src/nautilus-toolbar.c16
1 files changed, 0 insertions, 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);