Merge branch 'tray-gdbus' into tray-gdbus

This commit is contained in:
Tobias Pisani 2018-10-05 21:20:36 +02:00 committed by GitHub
commit a13ce6e227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#include <dbus-status-notifier-watcher.h>
#include <gtkmm.h>
#include <dbus-status-notifier-watcher.h>
namespace waybar::modules::SNI {
@ -44,3 +44,4 @@ private:
};
} // namespace waybar::modules::SNI

View File

@ -165,7 +165,8 @@ waybar::modules::SNI::Item::extractPixBuf(GVariant *variant) {
return Glib::RefPtr<Gdk::Pixbuf>{};
}
void waybar::modules::SNI::Item::updateImage() {
void waybar::modules::SNI::Item::updateImage()
{
if (!icon_name.empty()) {
auto pixbuf = getIconByName(icon_name, icon_size);
if (pixbuf->gobj() == nullptr) {

View File

@ -2,7 +2,6 @@
#include <iostream>
using namespace waybar::modules::SNI;
Watcher::Watcher()
@ -44,7 +43,6 @@ void Watcher::busAcquired(GDBusConnection* connection, const gchar* name,
std::cout << "Bus aquired" << std::endl;
}
gboolean Watcher::handleRegisterHost(Watcher* obj,
GDBusMethodInvocation* invocation, const gchar* service)
{