[gnome-builder] omnibar: stub out popover



commit 28900a03d5c3ec99c20459817d8fef890d178a45
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 22 23:13:30 2016 -0700

    omnibar: stub out popover

 libide/workbench/ide-omni-bar.c  |    2 +
 libide/workbench/ide-omni-bar.ui |   63 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+), 0 deletions(-)
---
diff --git a/libide/workbench/ide-omni-bar.c b/libide/workbench/ide-omni-bar.c
index fe79f09..7c63381 100644
--- a/libide/workbench/ide-omni-bar.c
+++ b/libide/workbench/ide-omni-bar.c
@@ -48,6 +48,7 @@ struct _IdeOmniBar
   GtkImage       *build_button_image;
   GtkLabel       *config_name_label;
   GtkStack       *message_stack;
+  GtkPopover     *popover;
 };
 
 G_DEFINE_TYPE (IdeOmniBar, ide_omni_bar, GTK_TYPE_BOX)
@@ -277,6 +278,7 @@ ide_omni_bar_class_init (IdeOmniBarClass *klass)
   gtk_widget_class_bind_template_child (widget_class, IdeOmniBar, build_result_mode_label);
   gtk_widget_class_bind_template_child (widget_class, IdeOmniBar, config_name_label);
   gtk_widget_class_bind_template_child (widget_class, IdeOmniBar, message_stack);
+  gtk_widget_class_bind_template_child (widget_class, IdeOmniBar, popover);
   gtk_widget_class_bind_template_child (widget_class, IdeOmniBar, project_label);
 }
 
diff --git a/libide/workbench/ide-omni-bar.ui b/libide/workbench/ide-omni-bar.ui
index 8dbd654..ae28f4a 100644
--- a/libide/workbench/ide-omni-bar.ui
+++ b/libide/workbench/ide-omni-bar.ui
@@ -102,4 +102,67 @@
       <widget name="build_button"/>
     </widgets>
   </object>
+  <object class="GtkPopover" id="popover">
+    <property name="border-width">20</property>
+    <property name="relative-to">frame</property>
+    <property name="position">bottom</property>
+    <child>
+      <object class="GtkBox">
+        <property name="spacing">12</property>
+        <property name="visible">true</property>
+        <child>
+          <object class="GtkGrid">
+            <property name="visible">true</property>
+            <child>
+              <object class="GtkLabel">
+                <property name="label" translatable="yes">Project</property>
+                <property name="visible">true</property>
+                <attributes>
+                  <attribute name="weight" value="bold"/>
+                </attributes>
+                <style>
+                  <class name="dim-label"/>
+                </style>
+              </object>
+            </child>
+            <child>
+              <object class="GtkLabel" id="popover_project_label">
+                <property name="hexpand">true</property>
+                <property name="visible">true</property>
+              </object>
+              <packing>
+                <property name="left-attach">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkLabel">
+                <property name="label" translatable="yes">Branch</property>
+                <property name="visible">true</property>
+                <attributes>
+                  <attribute name="weight" value="bold"/>
+                </attributes>
+                <style>
+                  <class name="dim-label"/>
+                </style>
+              </object>
+              <packing>
+                <property name="left-attach">0</property>
+                <property name="top-attach">1</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkLabel" id="popover_branch_label">
+                <property name="hexpand">true</property>
+                <property name="visible">true</property>
+              </object>
+              <packing>
+                <property name="left-attach">1</property>
+                <property name="top-attach">1</property>
+              </packing>
+            </child>
+          </object>
+        </child>
+      </object>
+    </child>
+  </object>
 </interface>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]