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);
|
auto host = static_cast<SNI::Host *>(data);
|
||||||
if (host->cancellable_ != nullptr) {
|
if (host->cancellable_ != nullptr) {
|
||||||
std::cout << "WTF" << std::endl;
|
// TODO
|
||||||
}
|
}
|
||||||
host->cancellable_ = g_cancellable_new();
|
host->cancellable_ = g_cancellable_new();
|
||||||
sn_org_kde_status_notifier_watcher_proxy_new(
|
sn_org_kde_status_notifier_watcher_proxy_new(
|
||||||
@ -110,7 +110,6 @@ void Host::registerHost(GObject* src, GAsyncResult* res,
|
|||||||
void Host::itemRegistered(
|
void Host::itemRegistered(
|
||||||
SnOrgKdeStatusNotifierWatcher* watcher, const gchar* service, gpointer data)
|
SnOrgKdeStatusNotifierWatcher* watcher, const gchar* service, gpointer data)
|
||||||
{
|
{
|
||||||
std::cout << "Item registered" << std::endl;
|
|
||||||
auto host = static_cast<SNI::Host *>(data);
|
auto host = static_cast<SNI::Host *>(data);
|
||||||
host->addRegisteredItem(service);
|
host->addRegisteredItem(service);
|
||||||
}
|
}
|
||||||
@ -123,7 +122,6 @@ void Host::itemUnregistered(
|
|||||||
for (auto it = host->items.begin(); it != host->items.end(); ++it) {
|
for (auto it = host->items.begin(); it != host->items.end(); ++it) {
|
||||||
if (it->bus_name == bus_name && it->object_path == object_path) {
|
if (it->bus_name == bus_name && it->object_path == object_path) {
|
||||||
host->items.erase(it);
|
host->items.erase(it);
|
||||||
std::cout << "Item Unregistered" << std::endl;
|
|
||||||
break;
|
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_protocol_version(host->watcher_, 0);
|
||||||
sn_org_kde_status_notifier_watcher_set_is_status_notifier_host_registered(
|
sn_org_kde_status_notifier_watcher_set_is_status_notifier_host_registered(
|
||||||
host->watcher_, TRUE);
|
host->watcher_, TRUE);
|
||||||
std::cout << "Bus aquired" << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean Watcher::handleRegisterHost(Watcher* obj,
|
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(
|
sn_org_kde_status_notifier_watcher_complete_register_status_notifier_host(
|
||||||
obj->watcher_, invocation);
|
obj->watcher_, invocation);
|
||||||
std::cout << "Host registered: " << bus_name << std::endl;
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user