[Xfce4-commits] [xfce/xfce4-settings] 07/37: Minor changes for compiler warnings
noreply at xfce.org
noreply at xfce.org
Fri Feb 15 00:27:36 CET 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h o c h o s i / c o l o r d
in repository xfce/xfce4-settings.
commit 0c548b5d8456e3121e6a1e587aaf52f9b232eda4
Author: Florian Schüller <florian.schueller at gmail.com>
Date: Sun Feb 3 02:00:06 2019 +0100
Minor changes for compiler warnings
---
dialogs/color-settings/main.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/dialogs/color-settings/main.c b/dialogs/color-settings/main.c
index 483f59d..9f91246 100644
--- a/dialogs/color-settings/main.c
+++ b/dialogs/color-settings/main.c
@@ -64,7 +64,7 @@ struct _ColorSettings
GDBusProxy *proxy;
} ColorSettings;
-static ColorSettings *settings;
+static ColorSettings *color_settings;
static void
color_settings_device_selected_cb (GtkTreeView *tree_view,
@@ -119,9 +119,9 @@ color_settings_get_devices_cb (GObject *object,
GAsyncResult *res,
gpointer user_data)
{
- ColorSettings *settings = (ColorSettings *) user_data;
+ //ColorSettings *settings = (ColorSettings *) user_data;
CdClient *client = CD_CLIENT (object);
- CdDevice *device;
+ //CdDevice *device;
g_autoptr(GError) error = NULL;
g_autoptr(GPtrArray) devices = NULL;
guint i;
@@ -136,7 +136,7 @@ color_settings_get_devices_cb (GObject *object,
}
for (i = 0; i < devices->len; i++)
{
- device = g_ptr_array_index (devices, i);
+ //device = g_ptr_array_index (devices, i);
g_warning ("device: %d", i);
//gcm_prefs_add_device (prefs, device);
}
@@ -171,32 +171,32 @@ color_settings_connect_cb (GObject *object,
//settings = CC_COLOR_PANEL (user_data);
/* get devices */
- cd_client_get_devices (settings->client,
- settings->cancellable,
+ cd_client_get_devices (color_settings->client,
+ color_settings->cancellable,
color_settings_get_devices_cb,
- settings);
+ color_settings);
}
static void
-color_settings_dialog_init ()
+color_settings_dialog_init (void)
{
- settings = g_new0 (ColorSettings, 1);
- settings->cancellable = g_cancellable_new ();
- settings->devices = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
+ color_settings = g_new0 (ColorSettings, 1);
+ color_settings->cancellable = g_cancellable_new ();
+ color_settings->devices = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
/* use a device client array */
- settings->client = cd_client_new ();
+ color_settings->client = cd_client_new ();
/* g_signal_connect_object (settings->client, "device-added",
G_CALLBACK (color_settings_device_added_cb), settings, 0);
g_signal_connect_object (settings->client, "device-removed",
G_CALLBACK (color_settings_device_removed_cb), settings, 0);
*/
- cd_client_connect (settings->client,
- settings->cancellable,
+ cd_client_connect (color_settings->client,
+ color_settings->cancellable,
color_settings_connect_cb,
- settings);
+ color_settings);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list