[kazehakase-svn] [3152] * src/kz-app.c: Call kz_app_freeze_session before gtk_main_quit().

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
Fri Apr 6 12:04:21 JST 2007


Revision: 3152
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3152
Author:   ikezoe
Date:     2007-04-06 12:04:20 +0900 (Fri, 06 Apr 2007)

Log Message:
-----------
* src/kz-app.c: Call kz_app_freeze_session before gtk_main_quit().
Calling kz_app_freeze_session() in disposing of KzApp is too late.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/kz-app.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-04-05 06:59:43 UTC (rev 3151)
+++ kazehakase/trunk/ChangeLog	2007-04-06 03:04:20 UTC (rev 3152)
@@ -1,3 +1,8 @@
+2007-04-06  Hiroyuki Ikezoe  <poinc****@ikezo*****>
+
+	* src/kz-app.c: Call kz_app_freeze_session before gtk_main_quit().
+	Calling kz_app_freeze_session() in disposing of KzApp is too late.
+
 2007-04-05  Kouhei Sutou  <kou****@cozmi*****>
 
 	* configure.ac: fixed a bug that Migemo is always disabled.

Modified: kazehakase/trunk/src/kz-app.c
===================================================================
--- kazehakase/trunk/src/kz-app.c	2007-04-05 06:59:43 UTC (rev 3151)
+++ kazehakase/trunk/src/kz-app.c	2007-04-06 03:04:20 UTC (rev 3152)
@@ -552,8 +552,6 @@
 	g_free(accel_prefs_file);
 
 	kz_root_bookmark_save_all(priv->bookmarks);
-	/* freeze session for storing last saving session */
-	kz_app_freeze_session(app);
 	g_object_unref(G_OBJECT(priv->bookmarks));
 
 	kz_profile_close(priv->profile);
@@ -936,14 +934,15 @@
 		static gboolean main_quited = FALSE;
 		if (!main_quited)
 		{
+			/* If the window is the last window, keep its tabs for saving the
+			 * session. */
+			kz_app_freeze_session(app);
 			gtk_main_quit();
 			main_quited = TRUE;
 		}
 	} 
 	else
 	{
-		/* If the window is last window, keep its tabs for saving the
-		 * session. */
 		if (kz->tabs)
 			kz_bookmark_remove(priv->bookmarks->current_session,
 					   kz->tabs);




More information about the Kazehakase-cvs mailing list
Zurück zum Archiv-Index