refacor media widget, apply clang format rule
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <csignal>
|
||||
#include <cstdint>
|
||||
#include <sigc++/connection.h>
|
||||
|
||||
#include "gdkmm/monitor.h"
|
||||
#include "gtkmm/scrolledwindow.h"
|
||||
#include "gtkmm/window.h"
|
||||
|
||||
#define DEFAULT_NOTIFICATION_TIMEOUT 6700
|
||||
@@ -19,11 +17,9 @@ class BaseNotification : public Gtk::Window {
|
||||
void resumeAutoClose();
|
||||
void startAutoClose(int timeoutMs);
|
||||
|
||||
sigc::signal<void(int)> signal_close;
|
||||
sigc::signal<void(uint64_t)> signal_close;
|
||||
sigc::signal<void(bool)> signal_hover_changed;
|
||||
|
||||
virtual ~BaseNotification() = default;
|
||||
|
||||
uint64_t getNotificationId() const {
|
||||
return this->notificationId;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "connection/dbus/messages.hpp"
|
||||
#include "widgets/notification/baseNotification.hpp"
|
||||
|
||||
#include "gtkmm/box.h"
|
||||
|
||||
class CopyNotification : public BaseNotification {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "connection/dbus/messages.hpp"
|
||||
#include "widgets/notification/baseNotification.hpp"
|
||||
|
||||
@@ -9,5 +10,4 @@ class NotificationWindow : public BaseNotification {
|
||||
public:
|
||||
NotificationWindow(uint64_t notificationId, std::shared_ptr<Gdk::Monitor> monitor, NotifyMessage message);
|
||||
virtual ~NotificationWindow() = default;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user