gnome-session r4836 - in branches/dbus_based: . splash



Author: fcrozat
Date: Thu Jul 24 13:26:47 2008
New Revision: 4836
URL: http://svn.gnome.org/viewvc/gnome-session?rev=4836&view=rev

Log:
2008-07-24  Frederic Crozat  <fcrozat mandriva com>

        * splash/gnome-login-sound.c: really disable login/logout sound
        if disabled by user. Fix bug #544540.



Modified:
   branches/dbus_based/ChangeLog
   branches/dbus_based/splash/gnome-login-sound.c

Modified: branches/dbus_based/splash/gnome-login-sound.c
==============================================================================
--- branches/dbus_based/splash/gnome-login-sound.c	(original)
+++ branches/dbus_based/splash/gnome-login-sound.c	Thu Jul 24 13:26:47 2008
@@ -49,6 +49,11 @@
     }
 
   *was_set = TRUE;
+  if (!sound_file[0])
+    {
+      return NULL;
+    }
+
   if (!g_path_is_absolute (sound_file))
     {
       char *tmp_sound_file;



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