gtranslator r3784 - trunk/src
- From: psanxiao svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3784 - trunk/src
- Date: Tue, 23 Sep 2008 11:02:49 +0000 (UTC)
Author: psanxiao
Date: Tue Sep 23 11:02:49 2008
New Revision: 3784
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3784&view=rev
Log:
* application.c:
(gtranslator_application_init):
Checks if the profiles.xml doesn't exist and if
so run the assistant.
Modified:
trunk/src/application.c
Modified: trunk/src/application.c
==============================================================================
--- trunk/src/application.c (original)
+++ trunk/src/application.c Tue Sep 23 11:02:49 2008
@@ -133,6 +133,7 @@
{
gchar *gtranslator_folder;
gchar *filename;
+ gchar *profiles_file;
GtranslatorApplicationPrivate * priv;
@@ -184,6 +185,14 @@
g_object_unref (file);
}
+ /*
+ * If the config folder exists but there is no profile
+ */
+ profiles_file = g_build_filename (gtranslator_folder, "profiles.xml", NULL);
+ if (!g_file_test (profiles_file, G_FILE_TEST_EXISTS))
+ priv->first_run = TRUE;
+ g_free (profiles_file);
+
priv->toolbars_model = egg_toolbars_model_new ();
priv->toolbars_file = g_build_filename (gtranslator_folder,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]