[gnome-color-manager] trivial: Set the profile we chose as 'Other' as the current device default
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: Set the profile we chose as 'Other' as the current device default
- Date: Fri, 19 Feb 2010 15:47:38 +0000 (UTC)
commit 3aabc5de17c7c1f9207ec3b1d3784023f8d0dfd1
Author: Richard Hughes <richard hughsie com>
Date: Fri Feb 19 13:03:14 2010 +0000
trivial: Set the profile we chose as 'Other' as the current device default
src/gcm-prefs.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index eea7048..eb9af49 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -1684,6 +1684,7 @@ gcm_prefs_profile_combo_changed_cb (GtkWidget *widget, gpointer data)
{
gchar *profile_old = NULL;
GFile *file = NULL;
+ GFile *dest = NULL;
gboolean ret;
GError *error = NULL;
GcmProfile *profile = NULL;
@@ -1727,6 +1728,10 @@ gcm_prefs_profile_combo_changed_cb (GtkWidget *widget, gpointer data)
g_free (uri);
goto out;
}
+
+ /* now use the new profile as the device default */
+ dest = gcm_utils_get_profile_destination (file);
+ filename = g_file_get_path (dest);
}
/* get the device type */
@@ -1784,6 +1789,8 @@ gcm_prefs_profile_combo_changed_cb (GtkWidget *widget, gpointer data)
out:
if (file != NULL)
g_object_unref (file);
+ if (dest != NULL)
+ g_object_unref (dest);
g_free (profile_old);
g_free (filename);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]