[gnome-color-manager] trivial: adapt gcm-viewer to the new colord async API
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: adapt gcm-viewer to the new colord async API
- Date: Mon, 30 May 2011 21:48:17 +0000 (UTC)
commit 082aee07263ced8e4e8bed77307915bb0e7d4226
Author: Richard Hughes <richard hughsie com>
Date: Mon May 30 22:47:25 2011 +0100
trivial: adapt gcm-viewer to the new colord async API
src/gcm-viewer.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index 340bf94..1354936 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -221,6 +221,7 @@ gcm_viewer_update_profile_list (GcmViewerPrivate *viewer)
CdProfile *profile;
guint i;
const gchar *filename = NULL;
+ gboolean ret;
gchar *sort = NULL;
GPtrArray *profile_array = NULL;
GError *error = NULL;
@@ -245,6 +246,15 @@ gcm_viewer_update_profile_list (GcmViewerPrivate *viewer)
for (i=0; i<profile_array->len; i++) {
profile = g_ptr_array_index (profile_array, i);
+ /* connect to the profile */
+ ret = cd_profile_connect_sync (profile, NULL, &error);
+ if (!ret) {
+ g_warning ("failed to connect to profile: %s",
+ error->message);
+ g_error_free (error);
+ goto out;
+ }
+
profile_kind = cd_profile_get_kind (profile);
icon_name = gcm_viewer_profile_kind_to_icon_name (profile_kind);
gtk_list_store_append (viewer->list_store_profiles, &iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]