[Xfce4-commits] <postler:master> Add 'Reset Text Size'/ Ctrl+0 to reset text zoom
Christian Dywan
noreply at xfce.org
Thu Apr 21 03:52:01 CEST 2011
Updating branch refs/heads/master
to 10dcbfd70fb893495385945ad514dc68353c9663 (commit)
from 892b95bebfeb64f103c62c866961750f67e98b48 (commit)
commit 10dcbfd70fb893495385945ad514dc68353c9663
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Apr 21 02:55:47 2011 +0200
Add 'Reset Text Size'/ Ctrl+0 to reset text zoom
postler/postler-bureau.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 2ffafc7..e5fe554 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -59,6 +59,7 @@ public class Postler.Bureau : Gtk.Window {
<menuitem action="HideRead"/>
<menuitem action="ZoomIn"/>
<menuitem action="ZoomOut"/>
+ <menuitem action="ZoomNormal"/>
<separator/>
<menuitem action="Fullscreen"/>
<menuitem action="ViewSource"/>
@@ -317,6 +318,10 @@ public class Postler.Bureau : Gtk.Window {
content.zoom_out ();
}
+ void action_zoom_normal () {
+ content.zoom_level = 1.0f;
+ }
+
void action_fullscreen () {
if ((window.get_state () & Gdk.WindowState.FULLSCREEN) == 0) {
fullscreen ();
@@ -469,6 +474,8 @@ public class Postler.Bureau : Gtk.Window {
N_("Enlarge message text"), action_zoom_in },
{ "ZoomOut", Gtk.STOCK_ZOOM_OUT, N_("Sh_rink Text"), "<Ctrl>minus",
N_("Shrink message text"), action_zoom_out },
+ { "ZoomNormal", Gtk.STOCK_ZOOM_100, N_("_Reset Text size"), "<Ctrl>0",
+ N_("Reset the message text size"), action_zoom_normal },
{ "Fullscreen", Gtk.STOCK_FULLSCREEN, null, "F11",
N_("View the message in fullscreen"), action_fullscreen },
{ "ViewSource", null, N_("View _Source"), "<Ctrl><Alt>u",
More information about the Xfce4-commits
mailing list