[chronojump] Better open button



commit e292e3cf14ce1f335c70f75ae854f0500997ac75
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jul 18 06:59:18 2013 +0200

    Better open button

 Makefile.win32         |    1 +
 glade/chronojump.glade |    4 ++--
 images/gtk-open.png    |  Bin 0 -> 550 bytes
 src/Makefile.am        |    1 +
 src/constants.cs       |    1 +
 src/gui/chronojump.cs  |    5 +++++
 src/gui/encoder.cs     |    1 +
 7 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.win32 b/Makefile.win32
index a7054ed..f3d18da 100644
--- a/Makefile.win32
+++ b/Makefile.win32
@@ -355,6 +355,7 @@ CHRONOJUMP_RESOURCES =  \
        -resource:../images/gtk-zoom-in-with-text.png,gtk-zoom-in-with-text.png \
        -resource:../images/gtk-new-1.png,gtk-new-1.png \
        -resource:../images/gtk-new-plus.png,gtk-new-plus.png \
+       -resource:../images/gtk-open.png,gtk-open.png \
        -resource:../images/gtk-open-1.png,gtk-open-1.png \
        -resource:../images/gtk-open-plus.png,gtk-open-plus.png \
        -resource:../images/chronojump_320.png,chronojump_320.png \
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index cd06c31..24047a4 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -55,7 +55,7 @@
                         <property name="use_stock">False</property>
                         <signal name="activate" handler="on_open_activate" swapped="no"/>
                         <child internal-child="image">
-                          <widget class="GtkImage" id="image10">
+                          <widget class="GtkImage" id="image_session_open">
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
                             <property name="stock">gtk-open</property>
@@ -12946,7 +12946,7 @@ on current Chronojump version.</property>
                                                         <property 
name="use_action_appearance">False</property>
                                                         <signal name="clicked" 
handler="on_button_encoder_load_signal_clicked" swapped="no"/>
                                                         <child>
-                                                          <widget class="GtkImage" id="image24">
+                                                          <widget class="GtkImage" 
id="image_encoder_capture_open">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="stock">gtk-open</property>
diff --git a/images/gtk-open.png b/images/gtk-open.png
new file mode 100644
index 0000000..093d2c9
Binary files /dev/null and b/images/gtk-open.png differ
diff --git a/src/Makefile.am b/src/Makefile.am
index 983cdf9..2a852a1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -328,6 +328,7 @@ RESOURCES = \
        ../images/gtk-zoom-in-with-text.png,gtk-zoom-in-with-text.png \
        ../images/gtk-new-1.png,gtk-new-1.png \
        ../images/gtk-new-plus.png,gtk-new-plus.png \
+       ../images/gtk-open.png,gtk-open.png \
        ../images/gtk-open-1.png,gtk-open-1.png \
        ../images/gtk-open-plus.png,gtk-open-plus.png \
        ../images/calendar.png,calendar.png \
diff --git a/src/constants.cs b/src/constants.cs
index 2cb0cf8..42ae876 100644
--- a/src/constants.cs
+++ b/src/constants.cs
@@ -342,6 +342,7 @@ public class Constants
        public static string FileNameZoomInWithTextIcon = "gtk-zoom-in-with-text.png";
        public static string FileNameNew1 = "gtk-new-1.png";
        public static string FileNameNewPlus = "gtk-new-plus.png";
+       public static string FileNameOpen = "gtk-open.png";
        public static string FileNameOpen1 = "gtk-open-1.png";
        public static string FileNameOpenPlus = "gtk-open-plus.png";
 
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index cac6931..9c806f5 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -104,6 +104,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.MenuItem menuitem_delete_session;
        [Widget] Gtk.MenuItem menuitem_export_csv;
        [Widget] Gtk.MenuItem menuitem_export_xml;
+       [Widget] Gtk.Image image_session_open;
                
        //menu person
        [Widget] Gtk.Button button_persons_up;
@@ -712,6 +713,10 @@ public partial class ChronoJumpWindow
                UtilGtk.ColorsRadio(viewport_chronopics, extra_window_radio_multichronopic_start);
                UtilGtk.ColorsRadio(viewport_chronopics, extra_window_radio_multichronopic_run_analysis);
 
+               //open buttons (this is shown better in windows than the default open icon)
+               pixbuf = new Pixbuf (null, Util.GetImagePath(false) + Constants.FileNameOpen);
+               image_session_open.Pixbuf = pixbuf;
+               image_encoder_capture_open.Pixbuf = pixbuf;
 
                //persons buttons
                pixbuf = new Pixbuf (null, Util.GetImagePath(false) + Constants.FileNameNew1);
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 08f5fd5..b29df29 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -56,6 +56,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.SpinButton spin_encoder_capture_min_height;
        [Widget] Gtk.SpinButton spin_encoder_capture_curves_height_range;
        [Widget] Gtk.Image image_encoder_capture;
+       [Widget] Gtk.Image image_encoder_capture_open;
        [Widget] Gtk.ProgressBar encoder_pulsebar_capture;
        [Widget] Gtk.Entry entry_encoder_signal_comment;
        [Widget] Gtk.Entry entry_encoder_curve_comment;


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