Commit 29e79b5b authored by Xavier de Blas's avatar Xavier de Blas

button_image_current_person_zoom_h allows zoom when person photo is not shown

parent af18fc92
......@@ -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>
......@@ -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;
......
......@@ -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;
}
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment