[gnome-builder/wip/large-project] workbench: put workspace in an event box
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/large-project] workbench: put workspace in an event box
- Date: Tue, 16 Jun 2015 03:04:32 +0000 (UTC)
commit e608d502d564c076d33c4a014596ffd2c42b62d3
Author: Christian Hergert <christian hergert me>
Date: Mon Jun 15 20:04:18 2015 -0700
workbench: put workspace in an event box
We can't simply add the window to the GtkOverlay subclass since it chains
up to the parent, which is not expecting a widget that has a gdk window.
Longer term, I'd like to rethink some of this abstraction, but this at
least gets us into a mergeable state.
data/ui/gb-workbench.ui | 83 +++++++++++++++++++++++++----------------------
1 files changed, 44 insertions(+), 39 deletions(-)
---
diff --git a/data/ui/gb-workbench.ui b/data/ui/gb-workbench.ui
index 68b28af..da91d32 100644
--- a/data/ui/gb-workbench.ui
+++ b/data/ui/gb-workbench.ui
@@ -97,58 +97,63 @@
<property name="orientation">vertical</property>
<property name="visible">true</property>
<child>
- <object class="GbWorkspace" id="workspace">
- <property name="expand">true</property>
+ <object class="GtkEventBox">
<property name="visible">true</property>
- <child internal-child="content_pane">
- <object class="GbWorkspacePane">
- <child internal-child="stack_switcher">
- <object class="GtkStackSwitcher">
- <property name="visible">false</property>
- </object>
- </child>
- <child internal-child="stack">
- <object class="GtkStack">
- <child>
- <object class="GbViewGrid" id="view_grid">
- <property name="visible">true</property>
+ <child>
+ <object class="GbWorkspace" id="workspace">
+ <property name="expand">true</property>
+ <property name="visible">true</property>
+ <child internal-child="content_pane">
+ <object class="GbWorkspacePane">
+ <child internal-child="stack_switcher">
+ <object class="GtkStackSwitcher">
+ <property name="visible">false</property>
+ </object>
+ </child>
+ <child internal-child="stack">
+ <object class="GtkStack">
+ <child>
+ <object class="GbViewGrid" id="view_grid">
+ <property name="visible">true</property>
+ </object>
+ </child>
</object>
</child>
</object>
</child>
- </object>
- </child>
- <child internal-child="left_pane">
- <object class="GbWorkspacePane">
- <child internal-child="stack">
- <object class="GtkStack">
- <child>
- <object class="GtkScrolledWindow">
- <property name="visible">true</property>
+ <child internal-child="left_pane">
+ <object class="GbWorkspacePane">
+ <child internal-child="stack">
+ <object class="GtkStack">
<child>
- <object class="GbProjectTree" id="project_tree">
- <property name="headers-visible">false</property>
- <property name="vexpand">true</property>
+ <object class="GtkScrolledWindow">
<property name="visible">true</property>
+ <child>
+ <object class="GbProjectTree" id="project_tree">
+ <property name="headers-visible">false</property>
+ <property name="vexpand">true</property>
+ <property name="visible">true</property>
+ </object>
+ </child>
</object>
+ <packing>
+ <property name="icon-name">folder-symbolic</property>
+ <property name="name">project_tree</property>
+ <property name="title" translatable="yes">Project</property>
+ </packing>
</child>
</object>
- <packing>
- <property name="icon-name">folder-symbolic</property>
- <property name="name">project_tree</property>
- <property name="title" translatable="yes">Project</property>
- </packing>
</child>
</object>
</child>
- </object>
- </child>
- <child internal-child="right_pane">
- <object class="GbWorkspacePane">
- </object>
- </child>
- <child internal-child="bottom_pane">
- <object class="GbWorkspacePane">
+ <child internal-child="right_pane">
+ <object class="GbWorkspacePane">
+ </object>
+ </child>
+ <child internal-child="bottom_pane">
+ <object class="GbWorkspacePane">
+ </object>
+ </child>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]