Skip to content

Commit

Permalink
Fix some widget types
Browse files Browse the repository at this point in the history
  • Loading branch information
xeco23 committed Aug 20, 2021
1 parent 56a4b83 commit 602cd63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ MainWindow::MainWindow(BaseObjectType* cobject, Glib::RefPtr<Gtk::Builder> const
refBuilder->get_widget("close_to_tray_button", closeToTrayButton);
closeToTrayButton->signal_clicked().connect(sigc::bind(sigc::mem_fun(this, &MainWindow::onCloseToTray), closeToTrayButton, startInTrayButton));

Gtk::Button* fullscreenButton = nullptr;
Gtk::ModelButton* fullscreenButton = nullptr;
refBuilder->get_widget("fullscreen_button", fullscreenButton);
fullscreenButton->signal_clicked().connect(sigc::mem_fun(this, &MainWindow::onFullscreen));

Expand All @@ -61,15 +61,15 @@ MainWindow::MainWindow(BaseObjectType* cobject, Glib::RefPtr<Gtk::Builder> const
refBuilder->get_widget("zoom_out_button", zoomOutButton);
zoomOutButton->signal_clicked().connect(sigc::bind(sigc::mem_fun(this, &MainWindow::onZoomOut), zoomLevelLabel));

Gtk::Button* shortcutsButton = nullptr;
Gtk::ModelButton* shortcutsButton = nullptr;
refBuilder->get_widget("shortcuts_button", shortcutsButton);
shortcutsButton->signal_clicked().connect(sigc::mem_fun(this, &MainWindow::onShortcuts));

Gtk::Button* aboutButton = nullptr;
Gtk::ModelButton* aboutButton = nullptr;
refBuilder->get_widget("about_button", aboutButton);
aboutButton->signal_clicked().connect(sigc::mem_fun(this, &MainWindow::onAbout));

Gtk::Button* quitButton = nullptr;
Gtk::ModelButton* quitButton = nullptr;
refBuilder->get_widget("quit_button", quitButton);
quitButton->signal_clicked().connect(sigc::mem_fun(this, &MainWindow::onQuit));

Expand Down

0 comments on commit 602cd63

Please sign in to comment.