[gdm] Beep when the greeter is ready
- From: Josselin Mouette <jmouette src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Beep when the greeter is ready
- Date: Fri, 17 Dec 2010 23:36:11 +0000 (UTC)
commit aa016d399b3ec7a8de941323201e94e4a3469aa3
Author: Josselin Mouette <joss debian org>
Date: Sat Dec 18 00:35:12 2010 +0100
Beep when the greeter is ready
Also enable event sounds so that the beep is actually played.
data/session-setup.entries | 7 +++++++
gui/simple-greeter/gdm-greeter-login-window.c | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/data/session-setup.entries b/data/session-setup.entries
index f787953..b84e16f 100644
--- a/data/session-setup.entries
+++ b/data/session-setup.entries
@@ -774,5 +774,12 @@
<string>/bin/true</string>
</value>
</entry>
+
+ <entry>
+ <key>/desktop/gnome/sound/event_sounds</key>
+ <value>
+ <bool>true</bool>
+ </value>
+ </entry>
</entrylist>
</gconfentryfile>
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index 6760c8b..6069e00 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -705,6 +705,7 @@ gdm_greeter_login_window_ready (GdmGreeterLoginWindow *login_window)
set_sensitive (GDM_GREETER_LOGIN_WINDOW (login_window), TRUE);
set_ready (GDM_GREETER_LOGIN_WINDOW (login_window));
set_focus (GDM_GREETER_LOGIN_WINDOW (login_window));
+ gdk_window_beep (gtk_widget_get_window (GTK_WIDGET (login_window)));
/* If we are retrying a previously selected user */
if (!login_window->priv->user_list_disabled &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]