[gthumb] zoom menu: removed unnecessary GtkBox
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] zoom menu: removed unnecessary GtkBox
- Date: Sun, 24 Nov 2019 12:28:25 +0000 (UTC)
commit f0ded31da42b1e8365334ac508a445dce30f68df
Author: Paolo Bacchilega <paobac src gnome org>
Date: Mon Nov 4 12:18:37 2019 +0100
zoom menu: removed unnecessary GtkBox
.../image_viewer/data/ui/toolbar-zoom-menu.ui | 205 ++++++++++-----------
1 file changed, 99 insertions(+), 106 deletions(-)
---
diff --git a/extensions/image_viewer/data/ui/toolbar-zoom-menu.ui
b/extensions/image_viewer/data/ui/toolbar-zoom-menu.ui
index 17854cdc..4679d90b 100644
--- a/extensions/image_viewer/data/ui/toolbar-zoom-menu.ui
+++ b/extensions/image_viewer/data/ui/toolbar-zoom-menu.ui
@@ -56,114 +56,107 @@
<property name="orientation">vertical</property>
<property name="width_request">200</property>
<child>
- <object class="GtkBox" id="sort_menu">
+ <object class="GtkModelButton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="text" translatable="yes">Automatic</property>
+ <property name="action-name">win.image-zoom</property>
+ <property name="action-target">'automatic'</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkModelButton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="text" translatable="yes">Fit to window</property>
+ <property name="action-name">win.image-zoom</property>
+ <property name="action-target">'fit'</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkModelButton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="text" translatable="yes">Fit to width</property>
+ <property name="action-name">win.image-zoom</property>
+ <property name="action-target">'fit-width'</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkModelButton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="text" translatable="yes">Fit to height</property>
+ <property name="action-name">win.image-zoom</property>
+ <property name="action-target">'fit-height'</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSeparator">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkModelButton">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkModelButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="text" translatable="yes">Automatic</property>
- <property name="action-name">win.image-zoom</property>
- <property name="action-target">'automatic'</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="text" translatable="yes">Fit to window</property>
- <property name="action-name">win.image-zoom</property>
- <property name="action-target">'fit'</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="text" translatable="yes">Fit to width</property>
- <property name="action-name">win.image-zoom</property>
- <property name="action-target">'fit-width'</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="text" translatable="yes">Fit to height</property>
- <property name="action-name">win.image-zoom</property>
- <property name="action-target">'fit-height'</property>
- </object>
- </child>
- <child>
- <object class="GtkSeparator">
- <property name="visible">True</property>
- <property name="orientation">horizontal</property>
- <property name="margin-top">6</property>
- <property name="margin-bottom">6</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="text" translatable="yes">50%</property>
- <property name="action-name">win.image-zoom</property>
- <property name="action-target">'50'</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="text" translatable="yes">100%</property>
- <property name="action-name">win.image-zoom</property>
- <property name="action-target">'100'</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="text" translatable="yes">200%</property>
- <property name="action-name">win.image-zoom</property>
- <property name="action-target">'200'</property>
- </object>
- </child>
- <child>
- <object class="GtkModelButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="text" translatable="yes">300%</property>
- <property name="action-name">win.image-zoom</property>
- <property name="action-target">'300'</property>
- </object>
- </child>
- <child>
- <object class="GtkSeparator">
- <property name="visible">True</property>
- <property name="orientation">horizontal</property>
- <property name="margin-top">6</property>
- <property name="margin-bottom">6</property>
- </object>
- </child>
- <child>
- <object class="GtkScale" id="zoom_level_scale">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="draw_value">False</property>
- <property name="has_origin">False</property>
- <property name="adjustment">zoom_adjustment</property>
- <property name="round_digits">0</property>
- <property name="restrict_to_fill_level">False</property>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- </packing>
- </child>
+ <property name="can_focus">True</property>
+ <property name="text" translatable="yes">50%</property>
+ <property name="action-name">win.image-zoom</property>
+ <property name="action-target">'50'</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkModelButton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="text" translatable="yes">100%</property>
+ <property name="action-name">win.image-zoom</property>
+ <property name="action-target">'100'</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkModelButton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="text" translatable="yes">200%</property>
+ <property name="action-name">win.image-zoom</property>
+ <property name="action-target">'200'</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkModelButton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="text" translatable="yes">300%</property>
+ <property name="action-name">win.image-zoom</property>
+ <property name="action-target">'300'</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkSeparator">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScale" id="zoom_level_scale">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="draw_value">False</property>
+ <property name="has_origin">False</property>
+ <property name="adjustment">zoom_adjustment</property>
+ <property name="round_digits">0</property>
+ <property name="restrict_to_fill_level">False</property>
</object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ </packing>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]