added simple fullscreen mode, toggled by F11
This commit is contained in:
parent
09a81a8e6b
commit
ece6eda296
@ -144,6 +144,16 @@ void RTWindow::remEditorPanel (EditorPanel* ep) {
|
||||
}
|
||||
|
||||
bool RTWindow::keyPressed (GdkEventKey* event) {
|
||||
if(event->keyval == GDK_F11) {
|
||||
if(is_fullscreen){
|
||||
unfullscreen();
|
||||
is_fullscreen = false;
|
||||
}
|
||||
else {
|
||||
fullscreen();
|
||||
is_fullscreen = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (mainNB->get_nth_page (mainNB->get_current_page()) == fpanel) {
|
||||
}
|
||||
|
@ -34,6 +34,8 @@ class RTWindow : public Gtk::Window {
|
||||
std::set<Glib::ustring> filesEdited;
|
||||
std::map<Glib::ustring, EditorPanel*> epanels;
|
||||
|
||||
bool is_fullscreen;
|
||||
|
||||
public:
|
||||
RTWindow ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user