[gdm] greeter: stop warning message in log



commit 8329b53fa16bbb4d048f852861637665c6552079
Author: Masatake YAMATO <yamato redhat com>
Date:   Thu Mar 15 19:06:11 2012 -0400

    greeter: stop warning message in log

 gui/simple-greeter/gdm-greeter-login-window.c  |    2 ++
 gui/simple-greeter/gdm-greeter-login-window.ui |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index 70192fc..eeb36cb 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -1886,6 +1886,8 @@ load_theme (GdmGreeterLoginWindow *login_window)
 
         box = GTK_WIDGET (gtk_builder_get_object (login_window->priv->builder, "window-frame"));
         gtk_container_add (GTK_CONTAINER (login_window), box);
+        gtk_widget_grab_default(GTK_WIDGET (gtk_builder_get_object (login_window->priv->builder,
+                                                                    "log-in-button")));
 
         login_window->priv->user_chooser = GTK_WIDGET (gtk_builder_get_object (login_window->priv->builder, "user-chooser"));
 
diff --git a/gui/simple-greeter/gdm-greeter-login-window.ui b/gui/simple-greeter/gdm-greeter-login-window.ui
index 2ab29cb..163a8f4 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.ui
+++ b/gui/simple-greeter/gdm-greeter-login-window.ui
@@ -259,7 +259,7 @@
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="can_default">True</property>
-                        <property name="has_default">True</property>
+                        <property name="has_default">False</property>
                         <property name="receives_default">False</property>
                       </object>
                       <packing>



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