mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: remove debug
This commit is contained in:
parent
68d9d2c347
commit
85f845ca43
@ -32,7 +32,7 @@ void Host::nameAppeared(GDBusConnection* connection,
|
||||
{
|
||||
auto host = static_cast<SNI::Host *>(data);
|
||||
if (host->cancellable_ != nullptr) {
|
||||
std::cout << "WTF" << std::endl;
|
||||
// TODO
|
||||
}
|
||||
host->cancellable_ = g_cancellable_new();
|
||||
sn_org_kde_status_notifier_watcher_proxy_new(
|
||||
@ -110,7 +110,6 @@ void Host::registerHost(GObject* src, GAsyncResult* res,
|
||||
void Host::itemRegistered(
|
||||
SnOrgKdeStatusNotifierWatcher* watcher, const gchar* service, gpointer data)
|
||||
{
|
||||
std::cout << "Item registered" << std::endl;
|
||||
auto host = static_cast<SNI::Host *>(data);
|
||||
host->addRegisteredItem(service);
|
||||
}
|
||||
@ -123,7 +122,6 @@ void Host::itemUnregistered(
|
||||
for (auto it = host->items.begin(); it != host->items.end(); ++it) {
|
||||
if (it->bus_name == bus_name && it->object_path == object_path) {
|
||||
host->items.erase(it);
|
||||
std::cout << "Item Unregistered" << std::endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,6 @@ void Watcher::busAcquired(GDBusConnection* connection, const gchar* name,
|
||||
sn_org_kde_status_notifier_watcher_set_protocol_version(host->watcher_, 0);
|
||||
sn_org_kde_status_notifier_watcher_set_is_status_notifier_host_registered(
|
||||
host->watcher_, TRUE);
|
||||
std::cout << "Bus aquired" << std::endl;
|
||||
}
|
||||
|
||||
gboolean Watcher::handleRegisterHost(Watcher* obj,
|
||||
@ -75,7 +74,6 @@ gboolean Watcher::handleRegisterHost(Watcher* obj,
|
||||
}
|
||||
sn_org_kde_status_notifier_watcher_complete_register_status_notifier_host(
|
||||
obj->watcher_, invocation);
|
||||
std::cout << "Host registered: " << bus_name << std::endl;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user