[gnome-photos] application: Change variable names to point to their meaning clearly
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application: Change variable names to point to their meaning clearly
- Date: Wed, 21 Jan 2015 10:39:15 +0000 (UTC)
commit f6994e69afef44968968fe972ee58b71806f692e
Author: Pranav Kant <pranavk src gnome org>
Date: Sat Jan 3 18:54:29 2015 +0530
application: Change variable names to point to their meaning clearly
This will help avoid confusion with the settings for lock screen
background.
https://bugzilla.gnome.org/show_bug.cgi?id=741590
src/photos-application.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 7d5b838..dc200fa 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -60,7 +60,7 @@ struct _PhotosApplicationPrivate
GList *miners;
GList *miners_running;
GResource *resource;
- GSettings *settings;
+ GSettings *bg_settings;
GSimpleAction *fs_action;
GSimpleAction *gear_action;
GSimpleAction *open_action;
@@ -515,11 +515,11 @@ photos_application_set_bg_download (GObject *source_object, GAsyncResult *res, g
}
- g_settings_set_string (priv->settings, DESKTOP_KEY_PICTURE_URI, filename);
- g_settings_set_enum (priv->settings, DESKTOP_KEY_PICTURE_OPTIONS, G_DESKTOP_BACKGROUND_STYLE_ZOOM);
- g_settings_set_enum (priv->settings, DESKTOP_KEY_COLOR_SHADING_TYPE, G_DESKTOP_BACKGROUND_SHADING_SOLID);
- g_settings_set_string (priv->settings, DESKTOP_KEY_PRIMARY_COLOR, "#000000000000");
- g_settings_set_string (priv->settings, DESKTOP_KEY_SECONDARY_COLOR, "#000000000000");
+ g_settings_set_string (priv->bg_settings, DESKTOP_KEY_PICTURE_URI, filename);
+ g_settings_set_enum (priv->bg_settings, DESKTOP_KEY_PICTURE_OPTIONS, G_DESKTOP_BACKGROUND_STYLE_ZOOM);
+ g_settings_set_enum (priv->bg_settings, DESKTOP_KEY_COLOR_SHADING_TYPE,
G_DESKTOP_BACKGROUND_SHADING_SOLID);
+ g_settings_set_string (priv->bg_settings, DESKTOP_KEY_PRIMARY_COLOR, "#000000000000");
+ g_settings_set_string (priv->bg_settings, DESKTOP_KEY_SECONDARY_COLOR, "#000000000000");
out:
g_free (filename);
@@ -819,7 +819,7 @@ photos_application_startup (GApplication *application)
g_error_free (error);
}
- priv->settings = g_settings_new (DESKTOP_BACKGROUND_SCHEMA);
+ priv->bg_settings = g_settings_new (DESKTOP_BACKGROUND_SCHEMA);
priv->resource = photos_get_resource ();
g_resources_register (priv->resource);
@@ -988,7 +988,7 @@ photos_application_dispose (GObject *object)
priv->resource = NULL;
}
- g_clear_object (&priv->settings);
+ g_clear_object (&priv->bg_settings);
g_clear_object (&priv->fs_action);
g_clear_object (&priv->gear_action);
g_clear_object (&priv->open_action);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]