gtranslator r3584 - in trunk: . src
- From: psanxiao svn gnome org
- To: svn-commits-list gnome org
- Subject: gtranslator r3584 - in trunk: . src
- Date: Thu, 18 Sep 2008 11:41:54 +0000 (UTC)
Author: psanxiao
Date: Thu Sep 18 11:41:53 2008
New Revision: 3584
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3584&view=rev
Log:
* application.c:
(gtranslator_application_init):
Checks if the profiles.xml doesn't exist and if
so run the assistant.
Modified:
trunk/ChangeLog
trunk/src/application.c
Modified: trunk/src/application.c
==============================================================================
--- trunk/src/application.c (original)
+++ trunk/src/application.c Thu Sep 18 11:41:53 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_strconcat (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]