[gnome-control-center/gbsneto/revert-non-hardware-proxies: 5/7] Revert "notification: Cache D-Bus proxy"
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/revert-non-hardware-proxies: 5/7] Revert "notification: Cache D-Bus proxy"
- Date: Mon, 27 Aug 2018 12:56:45 +0000 (UTC)
commit a2e166d0d68adeb78e1313738c1bf318c1d02db8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Aug 26 23:49:02 2018 -0300
Revert "notification: Cache D-Bus proxy"
This reverts commit 77ac09aa04c26a88b3c75466ab3c8432b3682b0c.
panels/notifications/cc-notifications-panel.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index f4a5cc755..31c0a8bc7 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -25,7 +25,6 @@
#include <gio/gio.h>
#include <gio/gdesktopappinfo.h>
-#include "shell/cc-object-storage.h"
#include "list-box-helper.h"
#include "cc-notifications-panel.h"
#include "cc-notifications-resources.h"
@@ -150,7 +149,7 @@ on_perm_store_ready (GObject *source_object,
GDBusProxy *proxy;
g_autoptr(GError) error = NULL;
- proxy = cc_object_storage_create_dbus_proxy_finish (res, &error);
+ proxy = g_dbus_proxy_new_for_bus_finish (res, &error);
if (proxy == NULL)
{
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
@@ -238,14 +237,15 @@ cc_notifications_panel_init (CcNotificationsPanel *panel)
gtk_widget_show (w);
- cc_object_storage_create_dbus_proxy (G_BUS_TYPE_SESSION,
- G_DBUS_PROXY_FLAGS_NONE,
- "org.freedesktop.impl.portal.PermissionStore",
- "/org/freedesktop/impl/portal/PermissionStore",
- "org.freedesktop.impl.portal.PermissionStore",
- panel->apps_load_cancellable,
- on_perm_store_ready,
- panel);
+ g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION,
+ G_DBUS_PROXY_FLAGS_NONE,
+ NULL,
+ "org.freedesktop.impl.portal.PermissionStore",
+ "/org/freedesktop/impl/portal/PermissionStore",
+ "org.freedesktop.impl.portal.PermissionStore",
+ panel->apps_load_cancellable,
+ on_perm_store_ready,
+ panel);
}
static const char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]