[chronojump] Code for the session icon (folders.png)



commit 055465ef600eb2b29f0db1a0a1015ba3ade6ae62
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sat Mar 21 19:36:08 2020 +0100

    Code for the session icon (folders.png)

 glade/app1.glade      | 18 +++++++++++++++---
 src/Makefile.am       |  1 +
 src/gui/app1/icons.cs |  2 ++
 src/gui/app1/menu.cs  |  6 ++++--
 4 files changed, 22 insertions(+), 5 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index cd65fbed..88942052 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -985,7 +985,19 @@
                                                             <property name="can_focus">False</property>
                                                             <property name="spacing">4</property>
                                                             <child>
-                                                            <widget class="GtkLabel" id="label461">
+                                                            <widget class="GtkImage" id="image_menu_folders">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label_menu_folders">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="label" 
translatable="yes">Session</property>
@@ -993,7 +1005,7 @@
                                                             <packing>
                                                             <property name="expand">True</property>
                                                             <property name="fill">True</property>
-                                                            <property name="position">0</property>
+                                                            <property name="position">1</property>
                                                             </packing>
                                                             </child>
                                                             <child>
@@ -1027,7 +1039,7 @@
                                                             <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
-                                                            <property name="position">1</property>
+                                                            <property name="position">2</property>
                                                             </packing>
                                                             </child>
                                                             </widget>
diff --git a/src/Makefile.am b/src/Makefile.am
index d6077bfd..76d1d3aa 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -531,6 +531,7 @@ RESOURCES = \
        ../images/md/baseline_new_releases_blue_24dp.png,new.png \
        ../images/md/baseline_menu_blue_24dp.png,image_menu.png \
        ../images/md/baseline_apps_6_blue_24dp.png,image_modes.png \
+       ../images/md/folders_blue.png,image_folders.png \
        ../images/md/baseline_help_blue_24dp.png,image_help.png \
        ../images/chronojump_icon.png,chronojump_icon.png \
        ../images/chronojump_icon_graph.png,chronojump_icon_graph.png \
diff --git a/src/gui/app1/icons.cs b/src/gui/app1/icons.cs
index 1e469f2b..25ccb8d3 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -276,6 +276,8 @@ public partial class ChronoJumpWindow
                image_button_show_menu.Pixbuf = pixbuf;
                pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_modes.png");
                image_button_show_modes.Pixbuf = pixbuf;
+               pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_folders.png");
+               image_menu_folders.Pixbuf = pixbuf;
                pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_help.png");
                image_menu_help.Pixbuf = pixbuf;
 
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index 54e13c50..cf201680 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -58,10 +58,12 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Label label_button_show_menu;
        [Widget] Gtk.Image image_button_show_modes;
        [Widget] Gtk.Label label_button_show_modes;
-       [Widget] Gtk.Image image_menu_help;
-       [Widget] Gtk.Label label_menu_help;
+       [Widget] Gtk.Image image_menu_folders;
+       [Widget] Gtk.Label label_menu_folders;
        [Widget] Gtk.Image image_menu_preferences;
        [Widget] Gtk.Label label_menu_preferences;
+       [Widget] Gtk.Image image_menu_help;
+       [Widget] Gtk.Label label_menu_help;
        [Widget] Gtk.Image image_menu_quit;
        [Widget] Gtk.Label label_menu_quit;
        [Widget] Gtk.Alignment alignment_menu_session_options;


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