From 63a39634f03f1547888ef54e31ccd4b8c59ab9ee Mon Sep 17 00:00:00 2001 From: John Smith Date: Tue, 28 Aug 2012 14:46:52 +0900 Subject: Fix for 171915 : Fullscreen mode without toolbars shortcut (bzr r11628) --- src/verbs.cpp | 6 ++++++ src/verbs.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/verbs.cpp b/src/verbs.cpp index 34379d341..2c24ef36a 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1784,6 +1784,10 @@ void ZoomVerb::perform(SPAction *action, void *data) case SP_VERB_FULLSCREEN: dt->fullscreen(); break; + case SP_VERB_FULLSCREENFOCUS: + dt->fullscreen(); + dt->focusMode(!dt->is_fullscreen()); + break; #endif // HAVE_GTK_WINDOW_FULLSCREEN case SP_VERB_FOCUSTOGGLE: dt->focusMode(!dt->is_focusMode()); @@ -2635,6 +2639,8 @@ Verb *Verb::_base_verbs[] = { #ifdef HAVE_GTK_WINDOW_FULLSCREEN new ZoomVerb(SP_VERB_FULLSCREEN, "FullScreen", N_("_Fullscreen"), N_("Stretch this document window to full screen"), INKSCAPE_ICON("view-fullscreen")), + new ZoomVerb(SP_VERB_FULLSCREENFOCUS, "FullScreenFocus", N_("Fullscreen & Focus Mode"), Glib::ustring::format(N_("Stretch this document window to full screen"), N_(" and "), N_("Remove excess toolbars to focus on drawing")).c_str(), + INKSCAPE_ICON("view-fullscreen")), #endif // HAVE_GTK_WINDOW_FULLSCREEN new ZoomVerb(SP_VERB_FOCUSTOGGLE, "FocusToggle", N_("Toggle _Focus Mode"), N_("Remove excess toolbars to focus on drawing"), NULL), diff --git a/src/verbs.h b/src/verbs.h index 3095d3e87..2f0ae85c1 100644 --- a/src/verbs.h +++ b/src/verbs.h @@ -228,6 +228,7 @@ enum { SP_VERB_ZOOM_2_1, #ifdef HAVE_GTK_WINDOW_FULLSCREEN SP_VERB_FULLSCREEN, + SP_VERB_FULLSCREENFOCUS, #endif /* HAVE_GTK_WINDOW_FULLSCREEN */ SP_VERB_FOCUSTOGGLE, SP_VERB_VIEW_NEW, -- cgit v1.2.3