From 602cd63789706d17db23f8e7d5483614fc938c84 Mon Sep 17 00:00:00 2001 From: Enes Hecan Date: Fri, 20 Aug 2021 17:16:17 +0200 Subject: [PATCH] Fix some widget types --- src/MainWindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 12eacbb..b5b8061 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -45,7 +45,7 @@ MainWindow::MainWindow(BaseObjectType* cobject, Glib::RefPtr 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)); @@ -61,15 +61,15 @@ MainWindow::MainWindow(BaseObjectType* cobject, Glib::RefPtr 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));