[gnome-builder/wip/gtk4-port: 1747/1774] libide/gui: dont change page when inserting pane
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1747/1774] libide/gui: dont change page when inserting pane
- Date: Mon, 11 Jul 2022 22:31:56 +0000 (UTC)
commit cf0d8e40603d772e4030e80555baefa889ea62fb
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 30 17:56:44 2022 -0700
libide/gui: dont change page when inserting pane
src/libide/gui/ide-workspace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/gui/ide-workspace.c b/src/libide/gui/ide-workspace.c
index 62f248974..92b180436 100644
--- a/src/libide/gui/ide-workspace.c
+++ b/src/libide/gui/ide-workspace.c
@@ -1049,13 +1049,13 @@ add_to_frame_with_depth (PanelFrame *frame,
if ((int)depth < GET_PRIORITY (child))
{
panel_frame_add_before (frame, widget, child);
- panel_frame_set_visible_child (frame, widget);
- return;
+ goto reset_page;
}
}
panel_frame_add (frame, widget);
+reset_page:
if (previous_page != NULL)
panel_frame_set_visible_child (frame, previous_page);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]