some refactore
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
#include "widgets/notification/notificationWindow.hpp"
|
||||
#include <cstdint>
|
||||
#include <sys/types.h>
|
||||
#include "components/button/iconButton.hpp"
|
||||
#include "components/button/textButton.hpp"
|
||||
#include "helpers/string.hpp"
|
||||
|
||||
#include "gtkmm/box.h"
|
||||
#include "gtkmm/button.h"
|
||||
#include "gtkmm/gestureclick.h"
|
||||
#include "gtkmm/image.h"
|
||||
#include "gtkmm/label.h"
|
||||
|
||||
@@ -71,8 +72,7 @@ NotificationWindow::NotificationWindow(uint64_t notificationId, std::shared_ptr<
|
||||
std::string action_id = notify.actions[i];
|
||||
std::string action_label = notify.actions[i + 1];
|
||||
|
||||
auto btn = Gtk::make_managed<Gtk::Button>();
|
||||
btn->set_label(action_label);
|
||||
auto btn = Gtk::make_managed<TextButton>(action_label);
|
||||
|
||||
btn->add_css_class("notification-button");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user