From 19b77eb696ef4675cb45a5ed9401f37f2df82e0c Mon Sep 17 00:00:00 2001 From: Jabiertxof Date: Sun, 28 Jul 2019 19:02:00 +0200 Subject: fix coding style --- src/ui/desktop/menubar.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/ui/desktop/menubar.cpp') diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp index 79c3f5aaf..fd0d502d8 100644 --- a/src/ui/desktop/menubar.cpp +++ b/src/ui/desktop/menubar.cpp @@ -41,8 +41,9 @@ // ================= Common ==================== -std::vector > checkmenuitems; -unsigned int lastverb = 0;; +std::vector> checkmenuitems; +unsigned int lastverb = 0; +; // Sets tip static void @@ -59,8 +60,7 @@ deselect_action(SPAction *action) } // Trigger action -static void -item_activate(Gtk::MenuItem *menuitem, SPAction *action) +static void item_activate(Gtk::MenuItem *menuitem, SPAction *action) { if (action->verb->get_code() == lastverb) { lastverb = 0; @@ -71,12 +71,11 @@ item_activate(Gtk::MenuItem *menuitem, SPAction *action) lastverb = 0; } -static void -toggle_checkmenu(unsigned int emitting_verb, bool value) +static void toggle_checkmenu(unsigned int emitting_verb, bool value) { for (auto menu : checkmenuitems) { if (emitting_verb == menu.first) { - if (emitting_verb == lastverb) { + if (emitting_verb == lastverb) { lastverb = 0; return; } @@ -183,8 +182,7 @@ build_menu_item_from_verb(SPAction* action, // =============== CheckMenuItem ================== -bool -getStateFromPref(SPDesktop* dt, Glib::ustring item) +bool getStateFromPref(SPDesktop *dt, Glib::ustring item) { Glib::ustring pref_path; @@ -533,7 +531,6 @@ build_menu(Gtk::MenuShell* menu, Inkscape::XML::Node* xml, Inkscape::UI::View::V } } SP_ACTIVE_DESKTOP->_menu_update.connect(sigc::ptr_fun(&toggle_checkmenu)); - } Gtk::MenuBar* -- cgit v1.2.3