gnome: add search/call to header bar
Refs #66715
Change-Id: Ic3c23d9042dd6a196246fd771eb01779968aedfb
diff --git a/ui/ringmainwindow.ui b/ui/ringmainwindow.ui
index f2a3ca2..5187a4d 100644
--- a/ui/ringmainwindow.ui
+++ b/ui/ringmainwindow.ui
@@ -34,19 +34,42 @@
</packing>
</child>
<!-- end main menu button -->
- <!-- new call button -->
- <child>
- <object class="GtkButton" id="button_dial">
+ <!-- hbox search -->
+ <child type="title">
+ <object class="GtkBox" id="hbox_search">
<property name="visible">True</property>
- <property name="tooltip_text" translatable="yes">Place a new call</property>
- <property name="image">image_dial</property>
- <property name="label" translatable="yes">New Call</property>
+ <property name="orientation">horizontal</property>
+ <property name="can_focus">False</property>
+ <!-- <property name="halign">center</property> -->
+ <style>
+ <class name="linked"/>
+ </style>
+ <child>
+ <object class="GtkSearchEntry" id="search_entry">
+ <property name="visible">True</property>
+ <property name="height-request">43</property>
+ <property name="width-request">350</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button_placecall">
+ <property name="image">image_call</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkButton" id="button_addcontact">
+ <property name="image">image_contact</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
</object>
- <packing>
- <property name="pack-type">end</property>
- </packing>
</child>
- <!-- end new call button -->
+ <!-- end hbox search -->
</object>
</child>
<!-- end header definition -->
@@ -63,7 +86,7 @@
<property name="can_focus">True</property>
<property name="position">250</property>
<child>
- <object class="GtkBox" id="vbox_navigation">
+ <object class="GtkBox" id="vbox_left">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
@@ -152,7 +175,6 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">2</property>
</packing>
</child>
<!-- end nav buttons -->
@@ -162,19 +184,33 @@
<property name="shrink">False</property>
</packing>
</child>
+ <!-- right side of pane -->
<child>
- <object class="GtkTreeView" id="placeholder">
+ <object class="GtkBox" id="vbox_right">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <child internal-child="selection">
- <object class="GtkTreeSelection" id="treeview-selection2"/>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <!-- main display object -->
+ <child>
+ <object class="GtkTreeView" id="placeholder">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <child internal-child="selection">
+ <object class="GtkTreeSelection" id="treeview-selection2"/>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
</child>
+ <!-- end of main display object -->
</object>
<packing>
- <property name="resize">True</property>
- <property name="shrink">True</property>
+ <property name="shrink">False</property>
</packing>
</child>
+ <!-- end of right side of pane -->
</object>
<!-- end of Paned container -->
<packing>
@@ -199,8 +235,12 @@
<property name="visible">True</property>
<property name="resource">/cx/ring/RingGnome/users_small</property>
</object>
- <object class="GtkImage" id="image_dial">
+ <object class="GtkImage" id="image_call">
<property name="visible">True</property>
- <property name="resource">/cx/ring/RingGnome/dial</property>
+ <property name="resource">/cx/ring/RingGnome/call</property>
+ </object>
+ <object class="GtkImage" id="image_contact">
+ <property name="visible">True</property>
+ <property name="resource">/cx/ring/RingGnome/contact</property>
</object>
</interface>