[gdm] simple-greeter: Fix warnings
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] simple-greeter: Fix warnings
- Date: Thu, 19 Jul 2012 19:45:19 +0000 (UTC)
commit a071378d9b9f089c4974eba9c00a592908d5103d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jul 19 15:31:45 2012 -0400
simple-greeter: Fix warnings
https://bugzilla.gnome.org/show_bug.cgi?id=678057
gui/simple-greeter/gdm-greeter-login-window.c | 2 +-
gui/simple-greeter/gdm-user-chooser-widget.c | 26 -------------------------
2 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index f7b67b7..457a796 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -196,7 +196,7 @@ set_busy (GdmGreeterLoginWindow *login_window)
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (login_window)), cursor);
- gdk_cursor_unref (cursor);
+ g_object_unref (cursor);
}
static void
diff --git a/gui/simple-greeter/gdm-user-chooser-widget.c b/gui/simple-greeter/gdm-user-chooser-widget.c
index 0b6bf9b..7cfc638 100644
--- a/gui/simple-greeter/gdm-user-chooser-widget.c
+++ b/gui/simple-greeter/gdm-user-chooser-widget.c
@@ -141,8 +141,6 @@ get_icon_height_for_widget (GtkWidget *widget)
static gboolean
update_other_user_visibility (GdmUserChooserWidget *widget)
{
- int number_of_users;
-
g_debug ("GdmUserChooserWidget: updating other user visibility");
if (!widget->priv->show_user_other) {
@@ -965,30 +963,6 @@ on_is_loaded_changed (ActUserManager *manager,
queue_add_users (widget);
}
-static void
-parse_string_list (char *value, GSList **retval)
-{
- char **temp_array;
- int i;
-
- *retval = NULL;
-
- if (value == NULL || *value == '\0') {
- g_debug ("Not adding NULL user");
- *retval = NULL;
- return;
- }
-
- temp_array = g_strsplit (value, ",", 0);
- for (i = 0; temp_array[i] != NULL; i++) {
- g_debug ("Adding value %s", temp_array[i]);
- g_strstrip (temp_array[i]);
- *retval = g_slist_prepend (*retval, g_strdup (temp_array[i]));
- }
-
- g_strfreev (temp_array);
-}
-
static gboolean
load_users (GdmUserChooserWidget *widget)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]