refacor media widget, apply clang format rule
This commit is contained in:
11
src/app.cpp
11
src/app.cpp
@@ -2,17 +2,18 @@
|
||||
|
||||
#include <sigc++/sigc++.h>
|
||||
#include <vector>
|
||||
#include "connection/dbus/notification.hpp"
|
||||
|
||||
#include "connection/dbus/mpris.hpp"
|
||||
#include "connection/dbus/notification.hpp"
|
||||
#include "services/notificationController.hpp"
|
||||
#include "services/textureCache.hpp"
|
||||
|
||||
App::App() {
|
||||
this->app = Gtk::Application::create("org.example.mybar");
|
||||
this->setupServices();
|
||||
this->hyprlandService = HyprlandService::getInstance();
|
||||
this->hyprlandService = HyprlandService::getInstance();
|
||||
this->notificationService = std::make_shared<NotificationService>();
|
||||
this->mprisController = MprisController::getInstance();
|
||||
this->mprisController = MprisController::getInstance();
|
||||
|
||||
auto notificationController = NotificationController::getInstance();
|
||||
this->mprisController->signal_mpris_updated().connect(
|
||||
@@ -26,8 +27,7 @@ App::App() {
|
||||
|
||||
for (guint i = 0; i < monitors->get_n_items(); ++i) {
|
||||
auto monitor = std::dynamic_pointer_cast<Gdk::Monitor>(
|
||||
monitors->get_object(i)
|
||||
);
|
||||
monitors->get_object(i));
|
||||
|
||||
if (monitor) {
|
||||
auto bar = std::make_shared<Bar>(monitor->gobj());
|
||||
@@ -44,7 +44,6 @@ App::App() {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
app->signal_shutdown().connect([&]() {
|
||||
this->trayService->stop();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user