summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2008-04-29 14:54:14 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-04-29 14:54:14 +0000
commit28ace53c478eed2b37145ac65b47a43aa8164a96 (patch)
treed3417e175e6b00296b4795c28bad35e808a2e4be
parent8a0b61a1465f0fff28cf334381ce55e3ee10a399 (diff)
downloadgdm-28ace53c478eed2b37145ac65b47a43aa8164a96.tar.gz
Show a wait cursor while populating the language list, since this can take
2008-04-29 Matthias Clasen <mclasen@redhat.com> * gui/simple-greeter/gdm-language-chooser-dialog.c (gdm_language_chooser_dialog_realize): Show a wait cursor while populating the language list, since this can take a while, initially. svn path=/trunk/; revision=6180
-rw-r--r--ChangeLog6
-rw-r--r--gui/simple-greeter/gdm-language-chooser-dialog.c11
2 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6fc961ad..b8f47115 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-04-29 Matthias Clasen <mclasen@redhat.com>
+ * gui/simple-greeter/gdm-language-chooser-dialog.c
+ (gdm_language_chooser_dialog_realize): Show a wait cursor while
+ populating the language list, since this can take a while, initially.
+
+2008-04-29 Matthias Clasen <mclasen@redhat.com>
+
* gui/simple-greeter/gdm-greeter-login-window.c (set_ready): Don't
set an explicit cursor, just go back to the parent cursor.
diff --git a/gui/simple-greeter/gdm-language-chooser-dialog.c b/gui/simple-greeter/gdm-language-chooser-dialog.c
index 4d19c626..c3db845c 100644
--- a/gui/simple-greeter/gdm-language-chooser-dialog.c
+++ b/gui/simple-greeter/gdm-language-chooser-dialog.c
@@ -113,12 +113,23 @@ static void
gdm_language_chooser_dialog_realize (GtkWidget *widget)
{
GdmLanguageChooserDialog *chooser_dialog;
+ GdkWindow *root_window;
+ GdkCursor *cursor;
+
+ root_window = gdk_screen_get_root_window (gdk_screen_get_default ());
+ cursor = gdk_cursor_new (GDK_WATCH);
+ gdk_window_set_cursor (root_window, cursor);
+ gdk_cursor_unref (cursor);
chooser_dialog = GDM_LANGUAGE_CHOOSER_DIALOG (widget);
gtk_widget_show (chooser_dialog->priv->chooser_widget);
GTK_WIDGET_CLASS (gdm_language_chooser_dialog_parent_class)->realize (widget);
+
+ cursor = gdk_cursor_new (GDK_LEFT_PTR);
+ gdk_window_set_cursor (root_window, cursor);
+ gdk_cursor_unref (cursor);
}
static void