[chronojump] Icons for session overview
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Icons for session overview
- Date: Tue, 8 Oct 2019 12:05:18 +0000 (UTC)
commit a54452ec5e773e4548d9fc8bc13d56782b9527f6
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Oct 8 14:05:02 2019 +0200
Icons for session overview
glade/app1.glade | 42 +++++++++++++++++++++++-------
images/md/baseline_list_alt_blue_24dp.png | Bin 0 -> 2547 bytes
src/Makefile.am | 1 +
src/gui/chronojumpIcons.cs | 7 +++++
4 files changed, 41 insertions(+), 9 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 06d198fa..4a8e58f6 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -480,12 +480,20 @@
</widget>
</child>
<child>
- <widget class="GtkMenuItem" id="menuitem_encoder_session_overview">
+ <widget class="GtkImageMenuItem" id="menuitem_encoder_session_overview">
+ <property name="label" translatable="yes">Overview of this session</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Overview of this session</property>
- <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
<signal name="activate" handler="on_menuitem_encoder_session_overview_activate"
swapped="no"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image_menuitem_encoder_session_overview">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ </widget>
+ </child>
</widget>
</child>
</widget>
@@ -519,12 +527,20 @@
</widget>
</child>
<child>
- <widget class="GtkMenuItem" id="menuitem_forceSensor_session_overview">
+ <widget class="GtkImageMenuItem" id="menuitem_forceSensor_session_overview">
+ <property name="label" translatable="yes">Overview of this session</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Overview of this session</property>
- <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
<signal name="activate" handler="on_menuitem_forceSensor_session_overview_activate"
swapped="no"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image_menuitem_forceSensor_session_overview">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ </widget>
+ </child>
</widget>
</child>
<child>
@@ -576,12 +592,20 @@
</widget>
</child>
<child>
- <widget class="GtkMenuItem" id="menuitem_runEncoder_session_overview">
+ <widget class="GtkImageMenuItem" id="menuitem_runEncoder_session_overview">
+ <property name="label" translatable="yes">Overview of this session</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Overview of this session</property>
- <property name="use_underline">True</property>
+ <property name="use_stock">False</property>
+ <property name="always_show_image">True</property>
<signal name="activate" handler="on_menuitem_runEncoder_session_overview_activate"
swapped="no"/>
+ <child internal-child="image">
+ <widget class="GtkImage" id="image_menuitem_runEncoder_session_overview">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ </widget>
+ </child>
</widget>
</child>
<child>
diff --git a/images/md/baseline_list_alt_blue_24dp.png b/images/md/baseline_list_alt_blue_24dp.png
new file mode 100755
index 00000000..72818ac3
Binary files /dev/null and b/images/md/baseline_list_alt_blue_24dp.png differ
diff --git a/src/Makefile.am b/src/Makefile.am
index 72f975ea..5e1aed18 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -399,6 +399,7 @@ RESOURCES = \
../images/report_view.png,report_view.png \
../images/preferences-system.png,preferences-system.png \
../images/md/baseline_attachment_blue_24dp.png,image_attachment.png \
+ ../images/md/baseline_grid_on_blue_24dp.png,image_grid_on.png \
../images/md/baseline_photo_camera_start_blue_24dp.png,image_photo_start_camera.png \
../images/md/baseline_photo_camera_end_blue_24dp.png,image_photo_end_camera.png \
../images/md/baseline_photo_camera_do_red_24dp.png,image_photo_do.png \
diff --git a/src/gui/chronojumpIcons.cs b/src/gui/chronojumpIcons.cs
index 83c0fecb..79aca878 100644
--- a/src/gui/chronojumpIcons.cs
+++ b/src/gui/chronojumpIcons.cs
@@ -157,6 +157,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_encoder_analyze_image_compujump_send_email_image;
[Widget] Gtk.Image image_encoder_analyze_image_compujump_send_email_send;
[Widget] Gtk.Image image_encoder_analyze_check;
+ [Widget] Gtk.Image image_menuitem_encoder_session_overview;
//force sensor
[Widget] Gtk.Image image_selector_start_force_sensor;
@@ -178,6 +179,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_force_sensor_laterality_both;
[Widget] Gtk.Image image_force_sensor_laterality_r;
[Widget] Gtk.Image image_force_sensor_laterality_l;
+ [Widget] Gtk.Image image_menuitem_forceSensor_session_overview;
//race encoder
[Widget] Gtk.Image image_race_encoder_open_folder;
@@ -186,6 +188,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_run_encoder_exercise_edit;
[Widget] Gtk.Image image_run_encoder_exercise_add;
[Widget] Gtk.Image image_run_encoder_exercise_delete;
+ [Widget] Gtk.Image image_menuitem_runEncoder_session_overview;
//video play icons
[Widget] Gtk.Image image_video_play_this_test;
@@ -635,6 +638,10 @@ public partial class ChronoJumpWindow
UtilGtk.DeviceColors(viewport_chronopics, true);
UtilGtk.DeviceColors(viewport_chronopic_encoder, true);
+ pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_grid_on.png");
+ image_menuitem_encoder_session_overview.Pixbuf = pixbuf;
+ image_menuitem_forceSensor_session_overview.Pixbuf = pixbuf;
+ image_menuitem_runEncoder_session_overview.Pixbuf = pixbuf;
//encoder
UtilGtk.ColorsRadio(viewport_chronopics, radiobutton_encoder_analyze_powerbars);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]