[gnome-color-manager] trivial: rename a function to make it clear it's only for virtual devices
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: rename a function to make it clear it's only for virtual devices
- Date: Thu, 25 Mar 2010 20:55:11 +0000 (UTC)
commit 112a830bc9233c6d2df215a2589e7f40f9668fd1
Author: Richard Hughes <richard hughsie com>
Date: Thu Mar 25 19:32:37 2010 +0000
trivial: rename a function to make it clear it's only for virtual devices
src/gcm-client.c | 4 ++--
src/gcm-client.h | 2 +-
src/gcm-prefs.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gcm-client.c b/src/gcm-client.c
index 2ba44ec..89dfe89 100644
--- a/src/gcm-client.c
+++ b/src/gcm-client.c
@@ -1002,10 +1002,10 @@ out:
}
/**
- * gcm_client_add_device:
+ * gcm_client_add_virtual_device:
**/
gboolean
-gcm_client_add_device (GcmClient *client, GcmDevice *device, GError **error)
+gcm_client_add_virtual_device (GcmClient *client, GcmDevice *device, GError **error)
{
gboolean ret = FALSE;
const gchar *id;
diff --git a/src/gcm-client.h b/src/gcm-client.h
index 9d5cbc9..2087cbd 100644
--- a/src/gcm-client.h
+++ b/src/gcm-client.h
@@ -67,7 +67,7 @@ GcmDevice *gcm_client_get_device_by_id (GcmClient *client,
const gchar *id);
GcmDevice *gcm_client_get_device_by_window (GcmClient *client,
GdkWindow *window);
-gboolean gcm_client_add_device (GcmClient *client,
+gboolean gcm_client_add_virtual_device (GcmClient *client,
GcmDevice *device,
GError **error);
gboolean gcm_client_delete_device (GcmClient *client,
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index a8a8a13..a21aef8 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -895,7 +895,7 @@ gcm_prefs_button_virtual_add_cb (GtkWidget *widget, gpointer data)
}
/* add to the device list */
- ret = gcm_client_add_device (gcm_client, device, &error);
+ ret = gcm_client_add_virtual_device (gcm_client, device, &error);
if (!ret) {
/* TRANSLATORS: could not add virtual device */
gcm_prefs_error_dialog (_("Failed to add virtual device"), error->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]