[chronojump] button_image_current_person_zoom_h allows zoom when person photo is not shown



commit 29e79b5bc9e0def981226cdf2530969e56e900a1
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Apr 9 15:47:23 2019 +0200

    button_image_current_person_zoom_h allows zoom when person photo is not shown

 glade/app1.glade             | 41 ++++++++++++++++++++++++++++++++++++++---
 src/gui/chronojumpIcons.cs   |  2 ++
 src/gui/chronojumpPersons.cs |  2 ++
 src/gui/networks.cs          |  1 +
 4 files changed, 43 insertions(+), 3 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index dd4deaad..9ca495f9 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -1884,6 +1884,9 @@
                                                             <placeholder/>
                                                             </child>
                                                             <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
                                                             <widget class="GtkLabel" 
id="label_start_selector_jumps">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
@@ -3856,6 +3859,32 @@ EncoderInertialCapture</property>
                                                       <widget class="GtkHBox" 
id="hbox_persons_bottom_no_photo">
                                                         <property name="can_focus">False</property>
                                                         <property name="spacing">2</property>
+                                                        <child>
+                                                          <widget class="GtkButton" 
id="button_image_current_person_zoom_h">
+                                                            <property name="visible">True</property>
+                                                            <property name="sensitive">False</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="receives_default">True</property>
+                                                            <property name="has_tooltip">True</property>
+                                                            <property name="tooltip" translatable="yes">Zoom 
image</property>
+                                                            <property name="relief">half</property>
+                                                            <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="GtkImage" 
id="image_current_person_zoom_h">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property 
name="stock">gtk-missing-image</property>
+                                                            <property name="icon-size">2</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_edit_current_person_h">
                                                             <property name="visible">True</property>
@@ -3879,7 +3908,7 @@ EncoderInertialCapture</property>
                                                           <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
-                                                            <property name="position">0</property>
+                                                            <property name="position">1</property>
                                                           </packing>
                                                         </child>
                                                         <child>
@@ -3903,7 +3932,7 @@ EncoderInertialCapture</property>
                                                           <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
-                                                            <property name="position">1</property>
+                                                            <property name="position">2</property>
                                                           </packing>
                                                         </child>
                                                         <child>
@@ -3927,7 +3956,7 @@ EncoderInertialCapture</property>
                                                           <packing>
                                                             <property name="expand">False</property>
                                                             <property name="fill">False</property>
-                                                            <property name="position">2</property>
+                                                            <property name="position">3</property>
                                                           </packing>
                                                         </child>
                                                       </widget>
@@ -20691,6 +20720,9 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -29284,6 +29316,9 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/src/gui/chronojumpIcons.cs b/src/gui/chronojumpIcons.cs
index f0386ebc..144f1a4a 100644
--- a/src/gui/chronojumpIcons.cs
+++ b/src/gui/chronojumpIcons.cs
@@ -46,6 +46,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Image image_mode_encoder_capture;
        [Widget] Gtk.Image image_manage_persons;
        [Widget] Gtk.Image image_current_person_zoom;
+       [Widget] Gtk.Image image_current_person_zoom_h;
        [Widget] Gtk.Image image_person;
        [Widget] Gtk.Image image_person1;
        [Widget] Gtk.Image image_edit_current_person;
@@ -234,6 +235,7 @@ public partial class ChronoJumpWindow
 
                pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "portrait_zoom.png");
                image_current_person_zoom.Pixbuf = pixbuf;
+               image_current_person_zoom_h.Pixbuf = pixbuf;
 
                pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_no_photo.png");
                image_current_person.Pixbuf = pixbuf;
diff --git a/src/gui/chronojumpPersons.cs b/src/gui/chronojumpPersons.cs
index 5c884840..ce40228e 100644
--- a/src/gui/chronojumpPersons.cs
+++ b/src/gui/chronojumpPersons.cs
@@ -80,11 +80,13 @@ public partial class ChronoJumpWindow
                        Pixbuf pixbuf = new Pixbuf (filenameMini);
                        image_current_person.Pixbuf = pixbuf;
                        button_image_current_person_zoom.Sensitive = true;
+                       button_image_current_person_zoom_h.Sensitive = true;
                } else {
                        //image_current_person.Pixbuf = null;
                        Pixbuf pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_no_photo.png");
                        image_current_person.Pixbuf = pixbuf;
                        button_image_current_person_zoom.Sensitive = false;
+                       button_image_current_person_zoom_h.Sensitive = false;
                }
        }
 
diff --git a/src/gui/networks.cs b/src/gui/networks.cs
index df553a9d..c68e1abb 100644
--- a/src/gui/networks.cs
+++ b/src/gui/networks.cs
@@ -57,6 +57,7 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Label label_top_person_name;
        [Widget] Gtk.Label label_top_encoder_person_name;
        [Widget] Gtk.Button button_image_current_person_zoom;
+       [Widget] Gtk.Button button_image_current_person_zoom_h;
        [Widget] Gtk.Image image_current_person;
        [Widget] Gtk.Button button_contacts_person_change;
        [Widget] Gtk.Button button_encoder_person_change;


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