[gnome-builder/wip/gtk4-port: 1094/1774] plugins/buildui: improve focus when showing popover
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1094/1774] plugins/buildui: improve focus when showing popover
- Date: Mon, 11 Jul 2022 22:31:34 +0000 (UTC)
commit 5c33237bbc14028e5b307ad4336b5f17515c4491
Author: Christian Hergert <chergert redhat com>
Date: Fri May 20 16:00:25 2022 -0700
plugins/buildui: improve focus when showing popover
src/plugins/buildui/gbp-buildui-status-popover.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/plugins/buildui/gbp-buildui-status-popover.c
b/src/plugins/buildui/gbp-buildui-status-popover.c
index 96f60f672..77b2a0b02 100644
--- a/src/plugins/buildui/gbp-buildui-status-popover.c
+++ b/src/plugins/buildui/gbp-buildui-status-popover.c
@@ -160,10 +160,7 @@ gbp_buildui_status_popover_closed (GtkPopover *popover)
if ((workspace = ide_widget_get_workspace (GTK_WIDGET (self))) &&
(page = ide_workspace_get_most_recent_page (workspace)))
- {
- panel_widget_raise (PANEL_WIDGET (page));
- gtk_widget_grab_focus (GTK_WIDGET (page));
- }
+ gtk_widget_grab_focus (GTK_WIDGET (page));
}
static void
@@ -273,6 +270,7 @@ gbp_buildui_status_popover_set_page (GbpBuilduiStatusPopover *self,
g_return_if_fail (page != NULL);
gtk_stack_set_visible_child_name (self->stack, page);
- visible_child = gtk_stack_get_visible_child (self->stack);
- gtk_widget_grab_focus (visible_child);
+
+ if ((visible_child = gtk_stack_get_visible_child (self->stack)))
+ gtk_widget_child_focus (visible_child, GTK_DIR_TAB_FORWARD);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]