Commit 45d25aae authored by Stepan Salenikovich's avatar Stepan Salenikovich

gnome: add search/call to header bar

Refs #66715

Change-Id: Ic3c23d9042dd6a196246fd771eb01779968aedfb
parent a355745e
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="24"
height="24"
id="svg2"
sodipodi:version="0.32"
inkscape:version="0.48.4 r9939"
version="1.0"
sodipodi:docname="incoming_rec.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
sodipodi:modified="true">
<defs
id="defs4">
<linearGradient
inkscape:collect="always"
id="linearGradient2433">
<stop
style="stop-color:#008000;stop-opacity:1;"
offset="0"
id="stop2435" />
<stop
style="stop-color:#008000;stop-opacity:0;"
offset="1"
id="stop2437" />
</linearGradient>
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 12 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="24 : 12 : 1"
inkscape:persp3d-origin="12 : 8 : 1"
id="perspective32" />
<linearGradient
id="linearGradient4269">
<stop
style="stop-color:#26b000;stop-opacity:1;"
offset="0"
id="stop4271" />
<stop
style="stop-color:#26b000;stop-opacity:0;"
offset="1"
id="stop4273" />
</linearGradient>
<linearGradient
id="linearGradient4183">
<stop
id="stop4185"
offset="0"
style="stop-color:#26b000;stop-opacity:1;" />
<stop
id="stop4187"
offset="1"
style="stop-color:#145f00;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient4167">
<stop
style="stop-color:#80000e;stop-opacity:1;"
offset="0"
id="stop4169" />
<stop
style="stop-color:#b00014;stop-opacity:0;"
offset="1"
id="stop4171" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2433"
id="linearGradient2439"
x1="2.965755"
y1="-0.80084854"
x2="32.578228"
y2="16.739393"
gradientUnits="userSpaceOnUse" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="16"
inkscape:cx="10.302309"
inkscape:cy="16.452644"
inkscape:document-units="px"
inkscape:current-layer="layer1"
width="32px"
height="32px"
showguides="true"
inkscape:guide-bbox="true"
inkscape:window-width="1301"
inkscape:window-height="744"
inkscape:window-x="65"
inkscape:window-y="456"
showgrid="false"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="color:#bebebe;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
id="rect44095-0-2"
width="27.25"
height="27.25"
x="-25.687498"
y="-27.12499"
inkscape:label="a"
transform="scale(-1,-1)" />
<rect
style="color:#bebebe;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
id="rect44095-0"
width="27.357903"
height="27.357903"
x="-1.6802465"
y="-4.3527112"
inkscape:label="a" />
<rect
inkscape:label="a"
y="-18.073694"
x="-1.6802227"
height="27.402094"
width="27.402094"
id="rect44122-0"
style="color:#bebebe;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible" />
<rect
inkscape:label="a"
y="-24.857332"
x="-2.7434559"
height="26.103628"
width="26.103628"
id="rect43299-7-0"
style="color:#bebebe;fill:none;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible"
transform="matrix(-0.25881905,0.96592583,-0.96592583,-0.25881905,0,0)" />
<path
inkscape:connector-curvature="0"
id="path44084-2-2"
d="m 16.372485,22.32294 c 0.257765,-1.233676 -0.51601,-2.389943 -1.159215,-3.378065 -0.751431,-0.989663 -1.586296,-2.01697 -2.738603,-2.547599 -0.36071,-0.09776 -0.65637,0.304006 -0.98952,0.42468 -0.866053,0.563106 -2.0857778,1.055071 -2.9976078,0.305231 C 7.3465453,16.109117 6.8078942,14.619853 5.9852331,13.361613 5.4082644,12.366459 4.6067386,11.075609 5.3886427,9.972671 5.9768746,9.1568898 6.9579771,8.8468956 7.7187466,8.2918168 7.905457,7.2918035 7.5288262,6.2644937 7.2463133,5.3104117 6.7660995,4.0560922 6.121967,2.7176147 4.9377681,1.9919649 3.9739528,1.4936243 3.1360581,2.4216994 2.4189945,2.9423212 0.77037102,4.2811786 0.01333518,6.4702583 0.19358972,8.5535738 0.4603675,11.902599 2.0602759,14.972451 3.8199767,17.76989 c 1.6123434,2.420006 3.6110717,4.853808 6.4339613,5.865028 1.986384,0.706809 4.276243,0.211571 5.942533,-1.018422 l 0.104236,-0.140652 0.07171,-0.152902 z"
style="fill:#545454;fill-opacity:1;stroke:none;display:inline;enable-background:new" />
<g
id="g18385"
transform="matrix(1.0927377,-0.64521662,0.64521662,1.0927377,534.13192,-298.03832)"
style="fill:#545454;fill-opacity:1;opacity:0.5">
<g
id="g12169"
style="fill:#545454;fill-opacity:1">
<path
sodipodi:nodetypes="scccscccs"
inkscape:connector-curvature="0"
id="rect11714-3-90-5-8"
d="m -469.32862,1.1569422 c 0,-2.81422 -1,-5.17173 -2.58557,-7 l -1.41443,0 0,1.48072 c 1.26466,1.51928 2,3.21936 2,5.51928 0,2.299919 -0.77953,3.999999 -2,5.519279 l 0,1.48072 1.38128,0 c 1.46575,-1.64044 2.61872,-4.18578 2.61872,-6.999999 z"
style="color:#000000;fill:#545454;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<path
sodipodi:nodetypes="scccscccs"
inkscape:connector-curvature="0"
id="rect11703-1-59-3-6"
d="m -472.32862,1.1569422 c 0,-2.16664 -0.73878,-4.01982 -2,-5 l -1,0 0,2 c 0.60652,0.78878 1,1.75887004 1,3 0,1.24113 -0.39348,2.219379 -1,2.999999 l 0,2 1,0 c 1.2229,-0.99478 2,-2.8734 2,-4.999999 z"
style="color:#000000;fill:#545454;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<path
sodipodi:nodetypes="zccccccz"
inkscape:connector-curvature="0"
id="path6297-6-84-7-2"
d="m -475.32862,1.1569422 c 0,-1.25732996 -0.31165,-2.21571 -1,-3 l -1,0 0,3 0,0.375 0,2.624999 1,0 c 0.67206,-0.8369 1,-1.742669 1,-2.999999 z"
clip-path="none"
mask="none"
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#545454;fill-opacity:1;stroke:none;stroke-width:2.32782053999999983;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" />
</g>
</g>
</g>
</svg>
This diff is collapsed.
......@@ -7,5 +7,7 @@
<file alias="history_small">history.svg</file>
<file alias="users_small">users.svg</file>
<file alias="dial">dial.svg</file>
<file alias="call">call.svg</file>
<file alias="contact">contact.svg</file>
</gresource>
</gresources>
\ No newline at end of file
......@@ -50,9 +50,8 @@ struct _RingMainWindowPrivate
{
GtkWidget *gears;
GtkWidget *gears_image;
/* models */
GtkWidget *treeview_call;
GtkWidget *search_entry;
};
G_DEFINE_TYPE_WITH_PRIVATE(RingMainWindow, ring_main_window, GTK_TYPE_APPLICATION_WINDOW);
......@@ -127,6 +126,7 @@ ring_main_window_class_init(RingMainWindowClass *klass)
gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), RingMainWindow, treeview_call);
gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), RingMainWindow, gears);
gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), RingMainWindow, gears_image);
gtk_widget_class_bind_template_child_private(GTK_WIDGET_CLASS (klass), RingMainWindow, search_entry);
}
GtkWidget *
......
......@@ -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/call</property>
</object>
<object class="GtkImage" id="image_contact">
<property name="visible">True</property>
<property name="resource">/cx/ring/RingGnome/dial</property>
<property name="resource">/cx/ring/RingGnome/contact</property>
</object>
</interface>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment