[nautilus/wip/antoniof/gnome-42: 32/72] Revert "toolbar: Stop using ::populate-popup"
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gnome-42: 32/72] Revert "toolbar: Stop using ::populate-popup"
- Date: Fri, 11 Feb 2022 19:28:00 +0000 (UTC)
commit 24948a27feded6d26901ef26fd7a5d646d612f07
Author: António Fernandes <antoniof gnome org>
Date: Fri Feb 11 19:01:43 2022 +0000
Revert "toolbar: Stop using ::populate-popup"
This reverts commit d1109fb311966f3e995291e8faf23b9330f0a891.
src/nautilus-toolbar.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index b11d62053..72e76955e 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -760,6 +760,20 @@ 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,
@@ -855,6 +869,8 @@ 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]