media widget fix
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <csignal>
|
||||
#include <cstdint>
|
||||
#include <chrono>
|
||||
|
||||
#include <sigc++/connection.h>
|
||||
|
||||
#include "gdkmm/monitor.h"
|
||||
#include "gtkmm/scrolledwindow.h"
|
||||
#include "gtkmm/window.h"
|
||||
|
||||
#define DEFAULT_NOTIFICATION_TIMEOUT 6700
|
||||
|
||||
|
||||
class BaseNotification : public Gtk::Window {
|
||||
public:
|
||||
BaseNotification( uint64_t notificationId, std::shared_ptr<Gdk::Monitor> monitor);
|
||||
BaseNotification(uint64_t notificationId, std::shared_ptr<Gdk::Monitor> monitor);
|
||||
|
||||
void pauseAutoClose();
|
||||
void resumeAutoClose();
|
||||
@@ -28,6 +27,7 @@ class BaseNotification : public Gtk::Window {
|
||||
uint64_t getNotificationId() const {
|
||||
return this->notificationId;
|
||||
}
|
||||
|
||||
private:
|
||||
void ensure_notification_css_loaded();
|
||||
|
||||
@@ -38,7 +38,7 @@ class BaseNotification : public Gtk::Window {
|
||||
protected:
|
||||
uint64_t notificationId;
|
||||
|
||||
bool autoClosePaused = false;
|
||||
bool autoClosePaused = false;
|
||||
int autoCloseRemainingMs = 0;
|
||||
std::chrono::steady_clock::time_point autoCloseDeadline;
|
||||
sigc::connection autoCloseConnection;
|
||||
|
||||
Reference in New Issue
Block a user