[chronojump] Arrows for persons manage
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Arrows for persons manage
- Date: Thu, 2 Apr 2020 11:02:22 +0000 (UTC)
commit 412bd05efed6124aa7930f7d1e066127d2314e9e
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Apr 2 13:02:03 2020 +0200
Arrows for persons manage
glade/app1.glade | 54 ++++++++++++++++++++++++++++++++++++++-
src/gui/app1/chronojump.cs | 5 ----
src/gui/app1/chronojumpPersons.cs | 12 +++++++++
3 files changed, 65 insertions(+), 6 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 2d8047ee..7de23ca0 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -2863,7 +2863,6 @@
<property name="spacing">4</property>
<child>
<widget class="GtkButton"
id="button_manage_persons">
- <property name="label"
translatable="yes">Manage</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
@@ -2873,6 +2872,59 @@
<property name="relief">half</property>
<property name="xalign">0</property>
<signal name="clicked"
handler="on_button_manage_persons_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkHBox" id="hbox386">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">4</property>
+ <child>
+ <widget class="GtkLabel" id="label22">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label"
translatable="yes">Manage</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkHBox" id="hbox390">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkArrow"
id="arrow_manage_persons_up">
+ <property name="can_focus">False</property>
+ <property name="arrow_type">up</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkArrow"
id="arrow_manage_persons_down">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="arrow_type">down</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index d198e4a6..22bf71e5 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -2681,11 +2681,6 @@ public partial class ChronoJumpWindow
}
}
- [Widget] Gtk.VBox vbox_manage_persons;
- private void on_button_manage_persons_clicked (object o, EventArgs args) {
- vbox_manage_persons.Visible = ! vbox_manage_persons.Visible;
- }
-
bool person_add_single_called_from_person_select_window;
private void on_person_add_single_from_main_gui (object o, EventArgs args)
{
diff --git a/src/gui/app1/chronojumpPersons.cs b/src/gui/app1/chronojumpPersons.cs
index 012383d3..08e092f3 100644
--- a/src/gui/app1/chronojumpPersons.cs
+++ b/src/gui/app1/chronojumpPersons.cs
@@ -28,6 +28,10 @@ using System.Collections.Generic; //List
public partial class ChronoJumpWindow
{
+ [Widget] Gtk.VBox vbox_manage_persons;
+ [Widget] Gtk.Arrow arrow_manage_persons_up;
+ [Widget] Gtk.Arrow arrow_manage_persons_down;
+
private void showPersonsOnTop (bool onTop)
{
hbox_top_person.Visible = onTop;
@@ -43,6 +47,14 @@ public partial class ChronoJumpWindow
}
}
+ private void on_button_manage_persons_clicked (object o, EventArgs args)
+ {
+ vbox_manage_persons.Visible = ! vbox_manage_persons.Visible;
+
+ arrow_manage_persons_up.Visible = vbox_manage_persons.Visible;
+ arrow_manage_persons_down.Visible = ! vbox_manage_persons.Visible;
+ }
+
private void showPersonPhoto (bool showPhoto)
{
hbox_persons_bottom_photo.Visible = showPhoto;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]