[gdm] greeter: clean up some benign warnings



commit 149b99971f24144899f55a1da62d9c9e8bb87522
Author: Ray Strode <rstrode redhat com>
Date:   Tue May 17 17:58:23 2011 -0400

    greeter: clean up some benign warnings

 gui/simple-greeter/gdm-greeter-login-window.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index abd6707..4b12582 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -392,6 +392,10 @@ set_log_in_button_mode (GdmGreeterLoginWindow *login_window,
                                                       NULL, /* priority */
                                                       &in_use,
                                                       NULL); /* is separate */
+
+                if (!res) {
+                        in_use = FALSE;
+                }
         }
 
         if (login_window->priv->current_button != NULL) {
@@ -490,7 +494,6 @@ static void
 switch_mode (GdmGreeterLoginWindow *login_window,
              int                    number)
 {
-        const char *default_name;
         GtkWidget  *box;
 
         /* Should never switch to MODE_UNDEFINED */
@@ -504,8 +507,6 @@ switch_mode (GdmGreeterLoginWindow *login_window,
                 login_window->priv->dialog_mode = number;
         }
 
-        default_name = NULL;
-
         switch (number) {
         case MODE_SELECTION:
                 set_log_in_button_mode (login_window, LOGIN_BUTTON_HIDDEN);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]