mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge branch 'tray-gdbus' into tray-gdbus
This commit is contained in:
@ -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) {
|
||||
|
@ -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)
|
||||
{
|
||||
@ -182,4 +180,4 @@ void Watcher::updateRegisteredItems(SnOrgKdeStatusNotifierWatcher* obj)
|
||||
obj, items);
|
||||
g_variant_unref(variant);
|
||||
g_free(items);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user