[chronojump] Sidebar session/persons with colorized eventboxes for all icons
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Sidebar session/persons with colorized eventboxes for all icons
- Date: Wed, 21 Jul 2021 14:12:55 +0000 (UTC)
commit fe9d3802fd41b6d880879026e80eb18a4f7cc04d
Author: Xavier de Blas <xaviblas gmail com>
Date: Wed Jul 21 16:12:16 2021 +0200
Sidebar session/persons with colorized eventboxes for all icons
glade/app1.glade | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++
src/gui/app1/menu.cs | 25 ++++++++++++++++++
2 files changed, 98 insertions(+)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 76b3854f5..5920b4c7b 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1746,6 +1746,10 @@
<property name="relief">half</property>
<signal name="clicked"
handler="on_person_add_single_from_main_gui" swapped="no"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_person_add_single">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkHBox" id="hbox536">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -1777,6 +1781,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -1794,6 +1800,10 @@
<property name="relief">half</property>
<signal name="clicked"
handler="on_person_add_multiple_from_main_gui" swapped="no"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_person_add_multiple">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_persons_new_plus">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -1801,6 +1811,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -1862,6 +1874,10 @@
<property name="relief">half</property>
<signal name="clicked"
handler="on_recuperate_person_from_main_gui" swapped="no"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_recuperate_person">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkHBox" id="hbox538">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -1893,6 +1909,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -1910,6 +1928,10 @@
<property name="relief">half</property>
<signal name="clicked"
handler="on_recuperate_persons_from_session_at_main_gui" swapped="no"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_recuperate_persons_from_other_session">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_persons_open_plus">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -1917,6 +1939,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -1979,6 +2003,10 @@
<signal name="clicked"
handler="on_button_image_current_person_zoom_clicked" swapped="no"/>
<accelerator key="p" signal="clicked"
modifiers="GDK_CONTROL_MASK"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_current_person_zoom_h">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_current_person_zoom_h">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -1987,6 +2015,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -2004,6 +2034,10 @@
<signal name="clicked"
handler="on_edit_current_person_clicked_from_main_gui" swapped="no"/>
<accelerator key="p" signal="clicked"
modifiers="GDK_CONTROL_MASK"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_edit_current_person_h">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_edit_current_person_h">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -2012,6 +2046,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">True</property>
<property name="fill">False</property>
@@ -2028,6 +2064,10 @@
<property name="relief">half</property>
<signal name="clicked"
handler="on_show_all_person_events_activate" swapped="no"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_show_all_person_events_h">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_all_persons_events_h">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -2036,6 +2076,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -2053,6 +2095,10 @@
<property name="relief">half</property>
<signal name="clicked"
handler="on_delete_current_person_from_session_clicked" swapped="no"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_delete_current_person_h">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_person_delete_h">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -2060,6 +2106,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">True</property>
<property name="fill">False</property>
@@ -2165,6 +2213,7 @@
<widget class="GtkVBox" id="vbox172">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="spacing">2</property>
<child>
<widget class="GtkButton"
id="button_image_current_person_zoom">
<property name="visible">True</property>
@@ -2177,6 +2226,10 @@
<signal name="clicked"
handler="on_button_image_current_person_zoom_clicked" swapped="no"/>
<accelerator key="p" signal="clicked"
modifiers="GDK_CONTROL_MASK"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_current_person_zoom">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_current_person_zoom">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -2185,6 +2238,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -2202,6 +2257,10 @@
<signal name="clicked"
handler="on_edit_current_person_clicked_from_main_gui" swapped="no"/>
<accelerator key="p" signal="clicked"
modifiers="GDK_CONTROL_MASK"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_edit_current_person">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_edit_current_person">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -2210,6 +2269,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -2226,6 +2287,10 @@
<property name="relief">half</property>
<signal name="clicked"
handler="on_show_all_person_events_activate" swapped="no"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_show_all_person_events">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_all_persons_events">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -2234,6 +2299,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -2251,6 +2318,10 @@
<property name="relief">half</property>
<signal name="clicked"
handler="on_delete_current_person_from_session_clicked" swapped="no"/>
<child>
+ <widget class="GtkEventBox"
id="eventbox_delete_current_person">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
<widget class="GtkImage"
id="image_person_delete">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -2258,6 +2329,8 @@
</widget>
</child>
</widget>
+ </child>
+ </widget>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
diff --git a/src/gui/app1/menu.cs b/src/gui/app1/menu.cs
index 75b918621..005a9c39a 100644
--- a/src/gui/app1/menu.cs
+++ b/src/gui/app1/menu.cs
@@ -44,6 +44,19 @@ public partial class ChronoJumpWindow
[Widget] Gtk.EventBox eventbox_button_menu_news;
[Widget] Gtk.EventBox eventbox_button_menu_exit;
[Widget] Gtk.EventBox eventbox_check_manage_persons;
+ [Widget] Gtk.EventBox eventbox_person_add_single;
+ [Widget] Gtk.EventBox eventbox_person_add_multiple;
+ [Widget] Gtk.EventBox eventbox_recuperate_person;
+ [Widget] Gtk.EventBox eventbox_recuperate_persons_from_other_session;
+ [Widget] Gtk.EventBox eventbox_current_person_zoom_h;
+ [Widget] Gtk.EventBox eventbox_edit_current_person_h;
+ [Widget] Gtk.EventBox eventbox_show_all_person_events_h;
+ [Widget] Gtk.EventBox eventbox_delete_current_person_h;
+ [Widget] Gtk.EventBox eventbox_current_person_zoom;
+ [Widget] Gtk.EventBox eventbox_edit_current_person;
+ [Widget] Gtk.EventBox eventbox_show_all_person_events;
+ [Widget] Gtk.EventBox eventbox_delete_current_person;
+
[Widget] Gtk.CheckButton check_menu_session;
[Widget] Gtk.Button button_menu_help;
[Widget] Gtk.Button button_menu_news;
@@ -251,6 +264,18 @@ public partial class ChronoJumpWindow
UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_news, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
UtilGtk.EventBoxColorBackgroundActive (eventbox_button_menu_exit, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
UtilGtk.EventBoxColorBackgroundActive (eventbox_check_manage_persons, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_person_add_single, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_person_add_multiple, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_recuperate_person, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_recuperate_persons_from_other_session,
UtilGtk.YELLOW, UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_current_person_zoom_h, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_edit_current_person_h, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_show_all_person_events_h, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_delete_current_person_h, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_current_person_zoom, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_edit_current_person, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_show_all_person_events, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
+ UtilGtk.EventBoxColorBackgroundActive (eventbox_delete_current_person, UtilGtk.YELLOW,
UtilGtk.YELLOW_LIGHT);
}
private void menuShowVerticalArrow (bool selected, Gtk.Arrow a_up, Gtk.Arrow a_down)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]