[gnome-control-center/gbsneto/revert-non-hardware-proxies: 3/7] Revert "region: 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: 3/7] Revert "region: Cache D-Bus proxy"
- Date: Mon, 27 Aug 2018 12:56:35 +0000 (UTC)
commit fc29c0c5a846e4c3605cea23c163107ae1516ea3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Aug 26 23:07:04 2018 -0300
Revert "region: Cache D-Bus proxy"
This reverts commit 10dfbb526e102676016fb9af3d252f8559b7e125.
panels/region/cc-region-panel.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/panels/region/cc-region-panel.c b/panels/region/cc-region-panel.c
index bdac8a81c..1f107531b 100644
--- a/panels/region/cc-region-panel.c
+++ b/panels/region/cc-region-panel.c
@@ -26,7 +26,6 @@
#include <gtk/gtk.h>
#include <polkit/polkit.h>
-#include "shell/cc-object-storage.h"
#include "list-box-helper.h"
#include "cc-region-panel.h"
#include "cc-region-resources.h"
@@ -1620,7 +1619,7 @@ session_proxy_ready (GObject *source,
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) {
if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
@@ -1684,14 +1683,15 @@ cc_region_panel_init (CcRegionPanel *self)
self->cancellable = g_cancellable_new ();
- cc_object_storage_create_dbus_proxy (G_BUS_TYPE_SESSION,
- G_DBUS_PROXY_FLAGS_NONE,
- "org.gnome.SessionManager",
- "/org/gnome/SessionManager",
- "org.gnome.SessionManager",
- self->cancellable,
- session_proxy_ready,
- self);
+ g_dbus_proxy_new_for_bus (G_BUS_TYPE_SESSION,
+ G_DBUS_PROXY_FLAGS_NONE,
+ NULL,
+ "org.gnome.SessionManager",
+ "/org/gnome/SessionManager",
+ "org.gnome.SessionManager",
+ self->cancellable,
+ session_proxy_ready,
+ self);
setup_login_button (self);
setup_language_section (self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]