"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gio/gpowerprofilemonitordbus.c" between
glib-2.69.2.tar.xz and glib-2.69.3.tar.xz

About: GLib is a low-level core C library used by GTK+ and GNOME. Development version.

gpowerprofilemonitordbus.c  (glib-2.69.2.tar.xz):gpowerprofilemonitordbus.c  (glib-2.69.3.tar.xz)
skipping to change at line 119 skipping to change at line 119
proxy = g_dbus_proxy_new_finish (res, &error); proxy = g_dbus_proxy_new_finish (res, &error);
if (!proxy) if (!proxy)
{ {
g_debug ("GPowerProfileMonitorDBus: Failed to create PowerProfiles D-Bus p roxy: %s", g_debug ("GPowerProfileMonitorDBus: Failed to create PowerProfiles D-Bus p roxy: %s",
error->message); error->message);
g_error_free (error); g_error_free (error);
return; return;
} }
active_profile_variant = g_dbus_proxy_get_cached_property (proxy, "ActiveProfi le"); active_profile_variant = g_dbus_proxy_get_cached_property (proxy, "ActiveProfi le");
if (g_variant_is_of_type (active_profile_variant, G_VARIANT_TYPE_STRING)) if (active_profile_variant != NULL &&
g_variant_is_of_type (active_profile_variant, G_VARIANT_TYPE_STRING))
{ {
active_profile = g_variant_get_string (active_profile_variant, NULL); active_profile = g_variant_get_string (active_profile_variant, NULL);
power_saver_enabled = g_strcmp0 (active_profile, "power-saver") == 0; power_saver_enabled = g_strcmp0 (active_profile, "power-saver") == 0;
if (power_saver_enabled != dbus->power_saver_enabled) if (power_saver_enabled != dbus->power_saver_enabled)
{ {
dbus->power_saver_enabled = power_saver_enabled; dbus->power_saver_enabled = power_saver_enabled;
g_object_notify (G_OBJECT (dbus), "power-saver-enabled"); g_object_notify (G_OBJECT (dbus), "power-saver-enabled");
} }
} }
g_clear_pointer (&active_profile_variant, g_variant_unref);
dbus->signal_id = g_signal_connect (G_OBJECT (proxy), "g-properties-changed", dbus->signal_id = g_signal_connect (G_OBJECT (proxy), "g-properties-changed",
G_CALLBACK (ppd_properties_changed_cb), db us); G_CALLBACK (ppd_properties_changed_cb), db us);
dbus->proxy = g_steal_pointer (&proxy); dbus->proxy = g_steal_pointer (&proxy);
} }
static void static void
ppd_appeared_cb (GDBusConnection *connection, ppd_appeared_cb (GDBusConnection *connection,
const gchar *name, const gchar *name,
const gchar *name_owner, const gchar *name_owner,
 End of changes. 2 change blocks. 
1 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)