diff --git a/CMakeLists.txt b/CMakeLists.txt index 802286b..ca02bbc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required (VERSION 2.8.8) project(juci) -set(JUCI_VERSION "1.2.3.2") +set(JUCI_VERSION "1.2.3.3") set(CPACK_PACKAGE_NAME "jucipp") set(CPACK_PACKAGE_CONTACT "Ole Christian Eidheim ") diff --git a/src/files.h b/src/files.h index d3149f5..3c3de0b 100644 --- a/src/files.h +++ b/src/files.h @@ -155,9 +155,9 @@ R"RAW( R"RAW( "close_tab": "w", "window_toggle_split": "", + "window_toggle_full_screen": "", "window_toggle_tabs": "", - "window_clear_terminal": "", - "full_screen": "F11" + "window_clear_terminal": "" }, "project": { "default_build_path_comment": "Use to insert the project top level directory name", diff --git a/src/menu.cc b/src/menu.cc index caab90f..87dad11 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -443,6 +443,12 @@ const Glib::ustring menu_xml= R"RAW( _Toggle _Split app.window_toggle_split + +
+ + _Toggle _Full _Screen + app.window_toggle_full_screen + _Toggle _Tabs _Visibility app.window_toggle_tabs @@ -454,12 +460,6 @@ const Glib::ustring menu_xml= R"RAW( app.window_clear_terminal
-
- - _Full _Screen - app.full_screen - -
diff --git a/src/window.cc b/src/window.cc index 03defea..544932b 100644 --- a/src/window.cc +++ b/src/window.cc @@ -1181,21 +1181,18 @@ void Window::set_menu_actions() { menu.add_action("window_toggle_split", [this] { Notebook::get().toggle_split(); }); - menu.add_action("window_clear_terminal", [this] { - Terminal::get().clear(); - }); - menu.add_action("full_screen", [this] { - if(!is_full_screen){ - Window::get().fullscreen(); - is_full_screen = true; - } else { - Window::get().unfullscreen(); - is_full_screen = false; - } + menu.add_action("window_toggle_full_screen", [this] { + if(this->get_window()->get_state() & Gdk::WindowState::WINDOW_STATE_FULLSCREEN) + unfullscreen(); + else + fullscreen(); }); menu.add_action("window_toggle_tabs", [this] { Notebook::get().toggle_tabs(); }); + menu.add_action("window_clear_terminal", [this] { + Terminal::get().clear(); + }); } void Window::activate_menu_items() { diff --git a/src/window.h b/src/window.h index 3259e0f..1ec5d33 100644 --- a/src/window.h +++ b/src/window.h @@ -35,7 +35,6 @@ private: bool case_sensitive_search=true; bool regex_search=false; bool search_entry_shown=false; - bool is_full_screen=false; }; #endif // JUCI_WINDOW_H