info: Cache D-Bus proxies
This commit is contained in:
parent
35f948f5fb
commit
e46d505182
1 changed files with 20 additions and 22 deletions
|
@ -22,6 +22,7 @@
|
|||
#include <config.h>
|
||||
|
||||
#include "shell/cc-hostname-entry.h"
|
||||
#include "shell/cc-object-storage.h"
|
||||
|
||||
#include "cc-info-resources.h"
|
||||
#include "info-cleanup.h"
|
||||
|
@ -235,9 +236,8 @@ get_renderer_from_session (void)
|
|||
char *renderer;
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
session_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
|
||||
session_proxy = cc_object_storage_create_dbus_proxy_sync (G_BUS_TYPE_SESSION,
|
||||
G_DBUS_PROXY_FLAGS_NONE,
|
||||
NULL,
|
||||
"org.gnome.SessionManager",
|
||||
"/org/gnome/SessionManager",
|
||||
"org.gnome.SessionManager",
|
||||
|
@ -302,9 +302,8 @@ has_dual_gpu (void)
|
|||
gboolean ret;
|
||||
g_autoptr(GError) error = NULL;
|
||||
|
||||
switcheroo_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
|
||||
switcheroo_proxy = cc_object_storage_create_dbus_proxy_sync (G_BUS_TYPE_SYSTEM,
|
||||
G_DBUS_PROXY_FLAGS_NONE,
|
||||
NULL,
|
||||
"net.hadess.SwitcherooControl",
|
||||
"/net/hadess/SwitcherooControl",
|
||||
"net.hadess.SwitcherooControl",
|
||||
|
@ -720,9 +719,8 @@ info_overview_panel_setup_virt (CcInfoOverviewPanel *self)
|
|||
g_autoptr(GVariant) variant = NULL;
|
||||
GVariant *inner;
|
||||
|
||||
systemd_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
|
||||
systemd_proxy = cc_object_storage_create_dbus_proxy_sync (G_BUS_TYPE_SYSTEM,
|
||||
G_DBUS_PROXY_FLAGS_NONE,
|
||||
NULL,
|
||||
"org.freedesktop.systemd1",
|
||||
"/org/freedesktop/systemd1",
|
||||
"org.freedesktop.systemd1",
|
||||
|
|
Loading…
Add table
Reference in a new issue