[chronojump] On Raspberry, bottomleft buttons to increase persons treeview
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] On Raspberry, bottomleft buttons to increase persons treeview
- Date: Mon, 9 Nov 2020 10:34:34 +0000 (UTC)
commit ed4ed9326c8bb1794e6a206f05d470c88e898e02
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Nov 9 11:34:08 2020 +0100
On Raspberry, bottomleft buttons to increase persons treeview
glade/app1.glade | 76 +++++++++++++++++++++++++++++++++++++++
src/gui/app1/chronojumpPersons.cs | 11 ++++++
src/gui/networks.cs | 4 +++
3 files changed, 91 insertions(+)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 2774dcdb..f31eb4ef 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -2486,6 +2486,70 @@
<property name="position">3</property>
</packing>
</child>
+ <child>
+ <widget class="GtkHBox"
id="hbox_persons_raspberry">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkHBox" id="hbox129">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <widget class="GtkButton"
id="button_persons_raspberry_left">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked"
handler="on_button_persons_raspberry_left_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkArrow" id="arrow25">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="arrow_type">left</property>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkButton"
id="button_persons_raspberry_right">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <signal name="clicked"
handler="on_button_persons_raspberry_right_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkArrow" id="arrow26">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </widget>
+ </child>
+ </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="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">4</property>
+ </packing>
+ </child>
</widget>
</child>
</widget>
@@ -24875,6 +24939,12 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -35993,6 +36063,12 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/app1/chronojumpPersons.cs b/src/gui/app1/chronojumpPersons.cs
index 784d5e25..fc819d09 100644
--- a/src/gui/app1/chronojumpPersons.cs
+++ b/src/gui/app1/chronojumpPersons.cs
@@ -34,6 +34,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.VBox vbox_manage_persons;
[Widget] Gtk.Arrow arrow_manage_persons_up;
[Widget] Gtk.Arrow arrow_manage_persons_down;
+ [Widget] Gtk.HBox hbox_persons_raspberry;
private void showPersonsOnTop (bool onTop)
{
@@ -494,4 +495,14 @@ public partial class ChronoJumpWindow
myTreeViewPersons.SelectRowByUniqueID(currentPerson.UniqueID);
}
+
+ private void on_button_persons_raspberry_left_clicked(object o, EventArgs args)
+ {
+ hpaned_contacts_main.Position -= 10;
+ }
+ private void on_button_persons_raspberry_right_clicked(object o, EventArgs args)
+ {
+ hpaned_contacts_main.Position += 10;
+ }
+
}
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index 4325bf38..8ce99a3c 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -231,6 +231,10 @@ public partial class ChronoJumpWindow
button_encoder_analyze_image_compujump_send_email.Visible = true;
}
+ //on raspberry with VNC the main hpaned cannot be moved, so show this buttons
+ if(configChronojump.Raspberry)
+ hbox_persons_raspberry.Visible = true;
+
if(configChronojump.Exhibition)
{
exhibitionGuiAtStart(configChronojump.ExhibitionStationType);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]