CVS: sylpheedclaws/sylpheed-claws/src main.c,1.115.2.117,1.115.2.118 main.h,1.7.2.6,1.7.2.7

[email protected] Wed, 13 Dec 2006 07:43:57 +0000
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src
In directory sunsite.dk:/tmp/cvs-serv29230/src

Modified Files:
      Tag: gtk2
	main.c main.h 
Log Message:
2006-12-13 [colin]	2.6.1cvs26

	* src/main.c
	* src/main.h
		Add claws_is_starting()

Index: main.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/main.c,v
retrieving revision 1.115.2.117
retrieving revision 1.115.2.118
diff -u -d -r1.115.2.117 -r1.115.2.118
--- main.c	2006/12/12 21:56:22	1.115.2.117
+++ main.c	2006/12/13 07:43:48	1.115.2.118
@@ -501,6 +501,9 @@
 }
 #endif
 
+static gboolean sc_exiting = FALSE;
+static gboolean sc_starting = FALSE;
+
 int main(int argc, char *argv[])
 {
 	gchar *userrc;
@@ -511,6 +514,8 @@
 	gint num_folder_class = 0;
 	START_TIMING("startup");
 	
+	sc_starting = TRUE;
+
 	if (!claws_init(&argc, &argv)) {
 		return 0;
 	}
@@ -873,7 +878,10 @@
 	}
 
 	prefs_destroy_cache();
+	
+	sc_starting = FALSE;
 	END_TIMING();
+	
 	gtk_main();
 
 	exit_claws(mainwin);
@@ -893,8 +901,6 @@
 	folder_item_free_cache(item, TRUE);
 }
 
-static gboolean sc_exiting = FALSE;
-
 static void exit_claws(MainWindow *mainwin)
 {
 	gchar *filename;
@@ -1254,6 +1260,11 @@
 gboolean claws_is_exiting(void)
 {
 	return sc_exiting;
+}
+
+gboolean claws_is_starting(void)
+{
+	return sc_starting;
 }
 
 /*

Index: main.h
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/main.h,v
retrieving revision 1.7.2.6
retrieving revision 1.7.2.7
diff -u -d -r1.7.2.6 -r1.7.2.7
--- main.h	2006/11/27 08:06:18	1.7.2.6
+++ main.h	2006/12/13 07:43:48	1.7.2.7
@@ -29,5 +29,5 @@
 void app_will_exit	(GtkWidget *widget, gpointer data);
 gboolean clean_quit	(gpointer data);
 gboolean claws_is_exiting(void);
-
+gboolean claws_is_starting(void);
 #endif /* __MAIN_H__ */