[epiphany] Leave popover open on zoom step changes
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Leave popover open on zoom step changes
- Date: Sun, 13 Jan 2019 23:05:04 +0000 (UTC)
commit 8d95b7cd1317a40797e7163ffe091fdaf801db96
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Sun Jan 13 16:33:50 2019 +0100
Leave popover open on zoom step changes
Turn GtkModelButton into GtkButton as the former one always closes popover on activation.
Fixes: https://gitlab.gnome.org/GNOME/epiphany/issues/462
src/resources/gtk/page-menu-popover.ui | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/src/resources/gtk/page-menu-popover.ui b/src/resources/gtk/page-menu-popover.ui
index 6dff125a0..fc7d59808 100644
--- a/src/resources/gtk/page-menu-popover.ui
+++ b/src/resources/gtk/page-menu-popover.ui
@@ -17,14 +17,16 @@
<class name="linked"/>
</style>
<child>
- <object class="GtkModelButton">
- <property name="text" translatable="yes">Zoom Out</property>
+ <object class="GtkButton">
<property name="tooltip_text" translatable="yes" context="tooltip">Zoom Out</property>
<property name="action-name">win.zoom-out</property>
- <property name="iconic">True</property>
- <property name="centered">True</property>
- <property name="icon">zoom_out</property>
<property name="visible">True</property>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon_name">zoom-out-symbolic</property>
+ </object>
+ </child>
</object>
<packing>
<property name="expand">True</property>
@@ -33,13 +35,11 @@
</packing>
</child>
<child>
- <object class="GtkModelButton" id="zoom-level">
- <property name="text">100%</property>
+ <object class="GtkButton" id="zoom-level">
+ <property name="label">100%</property>
<property name="tooltip_text" translatable="yes">Restore Zoom</property>
<property name="action-name">win.zoom-normal</property>
- <property name="iconic">True</property>
<property name="xalign">0.5</property>
- <property name="centered">True</property>
<property name="visible">True</property>
</object>
<packing>
@@ -49,14 +49,16 @@
</packing>
</child>
<child>
- <object class="GtkModelButton">
- <property name="text" translatable="yes">Zoom In</property>
+ <object class="GtkButton">
<property name="tooltip_text" translatable="yes" context="tooltip">Zoom In</property>
<property name="action-name">win.zoom-in</property>
- <property name="iconic">True</property>
- <property name="centered">True</property>
- <property name="icon">zoom_in</property>
<property name="visible">True</property>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon_name">zoom-in-symbolic</property>
+ </object>
+ </child>
</object>
<packing>
<property name="expand">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]