[gnome-builder/wip/gtk4-port] libide/gui: load dock and grid into primary workspace
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/gui: load dock and grid into primary workspace
- Date: Wed, 30 Mar 2022 00:08:29 +0000 (UTC)
commit 55a288e67a0ec3cdb6da97e623b0c09ef643ace7
Author: Christian Hergert <chergert redhat com>
Date: Tue Mar 29 17:08:25 2022 -0700
libide/gui: load dock and grid into primary workspace
src/libide/gui/ide-primary-workspace.c | 2 ++
src/libide/gui/ide-primary-workspace.ui | 31 +++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
---
diff --git a/src/libide/gui/ide-primary-workspace.c b/src/libide/gui/ide-primary-workspace.c
index 620fbc19b..44a932201 100644
--- a/src/libide/gui/ide-primary-workspace.c
+++ b/src/libide/gui/ide-primary-workspace.c
@@ -22,6 +22,7 @@
#include "config.h"
+#include "ide-grid.h"
#include "ide-gui-global.h"
#include "ide-header-bar.h"
#include "ide-notifications-button.h"
@@ -94,6 +95,7 @@ ide_primary_workspace_class_init (IdePrimaryWorkspaceClass *klass)
gtk_widget_class_bind_template_child (widget_class, IdePrimaryWorkspace, project_title);
gtk_widget_class_bind_template_child (widget_class, IdePrimaryWorkspace, run_button);
+ g_type_ensure (IDE_TYPE_GRID);
g_type_ensure (IDE_TYPE_NOTIFICATIONS_BUTTON);
g_type_ensure (IDE_TYPE_OMNI_BAR);
g_type_ensure (IDE_TYPE_RUN_BUTTON);
diff --git a/src/libide/gui/ide-primary-workspace.ui b/src/libide/gui/ide-primary-workspace.ui
index f6d621bd0..73dac7b3c 100644
--- a/src/libide/gui/ide-primary-workspace.ui
+++ b/src/libide/gui/ide-primary-workspace.ui
@@ -4,6 +4,12 @@
<child type="titlebar">
<object class="IdeHeaderBar" id="header_bar">
<property name="menu-id">ide-primary-workspace-menu</property>
+ <child type="left">
+ <object class="PanelDockSwitcher">
+ <property name="dock">dock</property>
+ <property name="position">start</property>
+ </object>
+ </child>
<child type="title">
<object class="IdeOmniBar" id="omni_bar">
<property name="icon-name">builder-build-symbolic</property>
@@ -27,6 +33,31 @@
<child type="right">
<object class="IdeNotificationsButton" id="notifications_button"/>
</child>
+ <child type="right">
+ <object class="PanelDockSwitcher">
+ <property name="dock">dock</property>
+ <property name="position">end</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="PanelDock" id="dock">
+ <property name="vexpand">true</property>
+ <child type="center">
+ <object class="IdeGrid">
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="PanelStatusbar">
+ <child type="suffix">
+ <object class="PanelDockSwitcher">
+ <property name="dock">dock</property>
+ <property name="position">bottom</property>
+ </object>
+ </child>
</object>
</child>
</template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]