Revert "notification: Cache D-Bus proxy"
This reverts commit 77ac09aa04
.
This commit is contained in:
parent
a44d395804
commit
a2e166d0d6
1 changed files with 10 additions and 10 deletions
|
@ -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,8 +237,9 @@ cc_notifications_panel_init (CcNotificationsPanel *panel)
|
|||
|
||||
gtk_widget_show (w);
|
||||
|
||||
cc_object_storage_create_dbus_proxy (G_BUS_TYPE_SESSION,
|
||||
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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue