[patch] gnome-session crashes on logout when autosave session is on
- From: Gustavo Giráldez <gustavo giraldez gmx net>
- To: desktop-devel-list gnome org
- Cc: Mark McLoughlin <mark skynet ie>
- Subject: [patch] gnome-session crashes on logout when autosave session is on
- Date: 23 May 2002 05:23:39 -0300
Hi,
The logout code in gnome-session (function is display_gui) doesn't check
whether it created the "Save session" check box, and thus gets a
segfault when it tries to access it active value. The following patch
fixes that.
HTH,
Gustavo
? autom4te.cache
? stamp-h1
? gnome-session/.thumbnails
? gnome-session/save-session
? gnome-session/session-properties
? gnome-session/session-properties-capplet
Index: gnome-session/logout.c
===================================================================
RCS file: /cvs/gnome/gnome-session/gnome-session/logout.c,v
retrieving revision 1.33
diff -u -r1.33 logout.c
--- gnome-session/logout.c 21 May 2002 21:37:56 -0000 1.33
+++ gnome-session/logout.c 23 May 2002 08:07:58 -0000
@@ -316,7 +316,7 @@
halt_active = GTK_TOGGLE_BUTTON (halt)->active;
reboot_active = GTK_TOGGLE_BUTTON (reboot)->active;
- save_active = GTK_TOGGLE_BUTTON (toggle_button)->active;
+ save_active = toggle_button ? GTK_TOGGLE_BUTTON (toggle_button)->active : autosave;
gtk_widget_destroy (box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]