[longomatch] Replace unicode characters with arrows



commit 05b9812fe740eab0fe2f35e020617c349f59f0ab
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Dec 3 00:53:59 2014 +0100

    Replace unicode characters with arrows

 LongoMatch.GUI/Gui/Component/ProjectPeriods.cs     |   11 ++-
 .../LongoMatch.Gui.Component.ProjectPeriods.cs     |   93 +++++++++++++------
 LongoMatch.GUI/gtk-gui/gui.stetic                  |   43 +++++++++-
 data/icons/Makefile.am                             |    1 +
 .../scalable/actions/longomatch-down-arrow.svg     |   49 ++++++++++
 5 files changed, 160 insertions(+), 37 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs b/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
index 5846030..6e84b64 100644
--- a/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
+++ b/LongoMatch.GUI/Gui/Component/ProjectPeriods.cs
@@ -44,8 +44,10 @@ namespace LongoMatch.Gui.Component
                {
                        this.Build ();
 
-                       zoomoutimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-zoom-more", 20, 
IconLookupFlags.ForceSvg);
-                       zoominimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-zoom-less", 20, 
IconLookupFlags.ForceSvg);
+                       zoomoutimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-zoom-more", 20);
+                       zoominimage.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-zoom-less", 20);
+                       arrowimage1.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-down-arrow", 20);
+                       arrowimage2.Pixbuf = Helpers.Misc.LoadIcon ("longomatch-down-arrow", 20);
 
                        zoominbutton.Clicked += HandleZooomActivated;
                        zoomoutbutton.Clicked += HandleZooomActivated;
@@ -59,9 +61,8 @@ namespace LongoMatch.Gui.Component
                        timersTimeline.TimeNodeChanged += HandleTimeNodeChanged;
                        timersTimeline.ShowTimerMenuEvent += HandleShowTimerMenuEvent;
                        scrolledwindow2.Hadjustment.ValueChanged += HandleValueChanged;
-                       synclabel.Markup = String.Format ("{0} {1} {2}", "<b>⬇  ",
-                                                         Catalog.GetString ("Synchronize the game periods"),
-                                                         "  ⬇</b>");
+                       synclabel.Markup = String.Format ("<b> {0} </b>",
+                                                         Catalog.GetString ("Synchronize the game periods"));
                        LongoMatch.Gui.Helpers.Misc.SetFocus (this, false);
                        menu = new PeriodsMenu ();
                }
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectPeriods.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectPeriods.cs
index c6959e1..ffe81bf 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectPeriods.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectPeriods.cs
@@ -6,7 +6,11 @@ namespace LongoMatch.Gui.Component
        {
                private global::Gtk.VBox vbox2;
                private global::LongoMatch.Gui.PlayerBin playerbin2;
+               private global::Gtk.Alignment alignment1;
+               private global::Gtk.HBox hbox4;
+               private global::Gtk.Image arrowimage1;
                private global::Gtk.Label synclabel;
+               private global::Gtk.Image arrowimage2;
                private global::Gtk.HBox hbox3;
                private global::Gtk.VBox vbox6;
                private global::Gtk.Button zoomoutbutton;
@@ -31,19 +35,48 @@ namespace LongoMatch.Gui.Component
                        this.playerbin2 = new global::LongoMatch.Gui.PlayerBin ();
                        this.playerbin2.Events = ((global::Gdk.EventMask)(256));
                        this.playerbin2.Name = "playerbin2";
+                       this.playerbin2.CloseAlwaysVisible = false;
                        this.vbox2.Add (this.playerbin2);
                        global::Gtk.Box.BoxChild w1 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.playerbin2]));
                        w1.Position = 0;
                        // Container child vbox2.Gtk.Box+BoxChild
+                       this.alignment1 = new global::Gtk.Alignment (0.5F, 0.5F, 0F, 1F);
+                       this.alignment1.Name = "alignment1";
+                       // Container child alignment1.Gtk.Container+ContainerChild
+                       this.hbox4 = new global::Gtk.HBox ();
+                       this.hbox4.Name = "hbox4";
+                       this.hbox4.Spacing = 6;
+                       // Container child hbox4.Gtk.Box+BoxChild
+                       this.arrowimage1 = new global::Gtk.Image ();
+                       this.arrowimage1.Name = "arrowimage1";
+                       this.hbox4.Add (this.arrowimage1);
+                       global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox4 
[this.arrowimage1]));
+                       w2.Position = 0;
+                       w2.Expand = false;
+                       w2.Fill = false;
+                       // Container child hbox4.Gtk.Box+BoxChild
                        this.synclabel = new global::Gtk.Label ();
+                       this.synclabel.WidthRequest = 300;
                        this.synclabel.Name = "synclabel";
                        this.synclabel.UseMarkup = true;
-                       this.vbox2.Add (this.synclabel);
-                       global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.synclabel]));
-                       w2.Position = 1;
-                       w2.Expand = false;
-                       w2.Fill = false;
-                       w2.Padding = ((uint)(10));
+                       this.hbox4.Add (this.synclabel);
+                       global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox4 
[this.synclabel]));
+                       w3.Position = 1;
+                       // Container child hbox4.Gtk.Box+BoxChild
+                       this.arrowimage2 = new global::Gtk.Image ();
+                       this.arrowimage2.Name = "arrowimage2";
+                       this.hbox4.Add (this.arrowimage2);
+                       global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox4 
[this.arrowimage2]));
+                       w4.Position = 2;
+                       w4.Expand = false;
+                       w4.Fill = false;
+                       this.alignment1.Add (this.hbox4);
+                       this.vbox2.Add (this.alignment1);
+                       global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.alignment1]));
+                       w6.Position = 1;
+                       w6.Expand = false;
+                       w6.Fill = false;
+                       w6.Padding = ((uint)(10));
                        // Container child vbox2.Gtk.Box+BoxChild
                        this.hbox3 = new global::Gtk.HBox ();
                        this.hbox3.Name = "hbox3";
@@ -62,10 +95,10 @@ namespace LongoMatch.Gui.Component
                        this.zoomoutbutton.Add (this.zoomoutimage);
                        this.zoomoutbutton.Label = null;
                        this.vbox6.Add (this.zoomoutbutton);
-                       global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox6 
[this.zoomoutbutton]));
-                       w4.Position = 0;
-                       w4.Expand = false;
-                       w4.Fill = false;
+                       global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox6 
[this.zoomoutbutton]));
+                       w8.Position = 0;
+                       w8.Expand = false;
+                       w8.Fill = false;
                        // Container child vbox6.Gtk.Box+BoxChild
                        this.zoominbutton = new global::Gtk.Button ();
                        this.zoominbutton.CanFocus = true;
@@ -76,14 +109,14 @@ namespace LongoMatch.Gui.Component
                        this.zoominbutton.Add (this.zoominimage);
                        this.zoominbutton.Label = null;
                        this.vbox6.Add (this.zoominbutton);
-                       global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox6 
[this.zoominbutton]));
-                       w6.Position = 1;
-                       w6.Expand = false;
-                       w6.Fill = false;
+                       global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.vbox6 
[this.zoominbutton]));
+                       w10.Position = 1;
+                       w10.Expand = false;
+                       w10.Fill = false;
                        this.hbox3.Add (this.vbox6);
-                       global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.vbox6]));
-                       w7.Position = 0;
-                       w7.Expand = false;
+                       global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.vbox6]));
+                       w11.Position = 0;
+                       w11.Expand = false;
                        // Container child hbox3.Gtk.Box+BoxChild
                        this.vbox7 = new global::Gtk.VBox ();
                        this.vbox7.Name = "vbox7";
@@ -91,31 +124,31 @@ namespace LongoMatch.Gui.Component
                        this.drawingarea1 = new global::Gtk.DrawingArea ();
                        this.drawingarea1.Name = "drawingarea1";
                        this.vbox7.Add (this.drawingarea1);
-                       global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox7 
[this.drawingarea1]));
-                       w8.Position = 0;
+                       global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox7 
[this.drawingarea1]));
+                       w12.Position = 0;
                        // Container child vbox7.Gtk.Box+BoxChild
                        this.scrolledwindow2 = new global::Gtk.ScrolledWindow ();
                        this.scrolledwindow2.HeightRequest = 50;
                        this.scrolledwindow2.CanFocus = true;
                        this.scrolledwindow2.Name = "scrolledwindow2";
                        // Container child scrolledwindow2.Gtk.Container+ContainerChild
-                       global::Gtk.Viewport w9 = new global::Gtk.Viewport ();
-                       w9.ShadowType = ((global::Gtk.ShadowType)(0));
+                       global::Gtk.Viewport w13 = new global::Gtk.Viewport ();
+                       w13.ShadowType = ((global::Gtk.ShadowType)(0));
                        // Container child GtkViewport.Gtk.Container+ContainerChild
                        this.drawingarea2 = new global::Gtk.DrawingArea ();
                        this.drawingarea2.Name = "drawingarea2";
-                       w9.Add (this.drawingarea2);
-                       this.scrolledwindow2.Add (w9);
+                       w13.Add (this.drawingarea2);
+                       this.scrolledwindow2.Add (w13);
                        this.vbox7.Add (this.scrolledwindow2);
-                       global::Gtk.Box.BoxChild w12 = ((global::Gtk.Box.BoxChild)(this.vbox7 
[this.scrolledwindow2]));
-                       w12.Position = 1;
+                       global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox7 
[this.scrolledwindow2]));
+                       w16.Position = 1;
                        this.hbox3.Add (this.vbox7);
-                       global::Gtk.Box.BoxChild w13 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.vbox7]));
-                       w13.Position = 1;
+                       global::Gtk.Box.BoxChild w17 = ((global::Gtk.Box.BoxChild)(this.hbox3 [this.vbox7]));
+                       w17.Position = 1;
                        this.vbox2.Add (this.hbox3);
-                       global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox3]));
-                       w14.Position = 2;
-                       w14.Expand = false;
+                       global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox3]));
+                       w18.Position = 2;
+                       w18.Expand = false;
                        this.Add (this.vbox2);
                        if ((this.Child != null)) {
                                this.Child.ShowAll ();
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index dbf157f..e6353a3 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -9506,9 +9506,48 @@ You can continue with the current capture, cancel it or save your project.
           </packing>
         </child>
         <child>
-          <widget class="Gtk.Label" id="synclabel">
+          <widget class="Gtk.Alignment" id="alignment1">
             <property name="MemberName" />
-            <property name="UseMarkup">True</property>
+            <property name="Xscale">0</property>
+            <child>
+              <widget class="Gtk.HBox" id="hbox4">
+                <property name="MemberName" />
+                <property name="Spacing">6</property>
+                <child>
+                  <widget class="Gtk.Image" id="arrowimage1">
+                    <property name="MemberName" />
+                  </widget>
+                  <packing>
+                    <property name="Position">0</property>
+                    <property name="AutoSize">False</property>
+                    <property name="Expand">False</property>
+                    <property name="Fill">False</property>
+                  </packing>
+                </child>
+                <child>
+                  <widget class="Gtk.Label" id="synclabel">
+                    <property name="MemberName" />
+                    <property name="WidthRequest">300</property>
+                    <property name="UseMarkup">True</property>
+                  </widget>
+                  <packing>
+                    <property name="Position">1</property>
+                    <property name="AutoSize">False</property>
+                  </packing>
+                </child>
+                <child>
+                  <widget class="Gtk.Image" id="arrowimage2">
+                    <property name="MemberName" />
+                  </widget>
+                  <packing>
+                    <property name="Position">2</property>
+                    <property name="AutoSize">False</property>
+                    <property name="Expand">False</property>
+                    <property name="Fill">False</property>
+                  </packing>
+                </child>
+              </widget>
+            </child>
           </widget>
           <packing>
             <property name="Position">1</property>
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am
index ad8661b..981d038 100644
--- a/data/icons/Makefile.am
+++ b/data/icons/Makefile.am
@@ -36,6 +36,7 @@ nobase_dist_icons_DATA = Makefile.am \
        hicolor/scalable/actions/longomatch-dash-fit.svg \
        hicolor/scalable/actions/longomatch-default-shield.svg \
        hicolor/scalable/actions/longomatch-delete.svg \
+       hicolor/scalable/actions/longomatch-down-arrow.svg \
        hicolor/scalable/actions/longomatch-eraser.svg \
        hicolor/scalable/actions/longomatch-eye.svg \
        hicolor/scalable/actions/longomatch-field-full.svg \
diff --git a/data/icons/hicolor/scalable/actions/longomatch-down-arrow.svg 
b/data/icons/hicolor/scalable/actions/longomatch-down-arrow.svg
new file mode 100644
index 0000000..0e23a10
--- /dev/null
+++ b/data/icons/hicolor/scalable/actions/longomatch-down-arrow.svg
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+
+<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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   version="1.1"
+   id="Layer_1"
+   x="0px"
+   y="0px"
+   width="20px"
+   height="20px"
+   viewBox="0 0 20 20"
+   enable-background="new 0 0 20 20"
+   xml:space="preserve"
+   inkscape:version="0.48.4 r9939"
+   sodipodi:docname="longomatch-arrow.svg"><metadata
+     id="metadata8"><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><defs
+     id="defs6" /><sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="640"
+     inkscape:window-height="480"
+     id="namedview4"
+     showgrid="false"
+     inkscape:zoom="15.210938"
+     inkscape:cx="10"
+     inkscape:cy="10"
+     inkscape:window-x="0"
+     inkscape:window-y="27"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="Layer_1" /><path
+     id="arrow-right"
+     d="m 10.437125,19.714875 4.33,-4.33 c 0.119,-0.118 0.182,-0.276 0.182,-0.437 0,-0.08 -0.015,-0.161 
-0.047,-0.236 -0.096,-0.232 -0.322,-0.383 -0.572,-0.383 l -3.093,0 0,-13.609 c 0,-0.342 -0.276,-0.617 
-0.618,-0.617 l -1.238,0 c -0.342,0 -0.619,0.275 -0.619,0.617 l 0,13.609 -3.092,0 c -0.25,0 -0.475,0.15 
-0.57,0.383 -0.035,0.075 -0.049,0.156 -0.049,0.236 0,0.16 0.064,0.318 0.182,0.437 l 4.331,4.33 c 0.24,0.243 
0.632,0.243 0.873,0 z"
+     inkscape:connector-curvature="0"
+     style="fill:#e6e6e6" /></svg>
\ No newline at end of file


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