brasero r716 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r716 - in trunk: . src
- Date: Mon, 14 Apr 2008 16:01:09 +0100 (BST)
Author: philippr
Date: Mon Apr 14 16:01:09 2008
New Revision: 716
URL: http://svn.gnome.org/viewvc/brasero?rev=716&view=rev
Log:
Fix for #520398 â Brasero doesn\'t match FreeDesktop directories specs
* src/brasero-session.c (brasero_session_load),
(brasero_session_save):
Modified:
trunk/ChangeLog
trunk/src/brasero-session.c
Modified: trunk/src/brasero-session.c
==============================================================================
--- trunk/src/brasero-session.c (original)
+++ trunk/src/brasero-session.c Mon Apr 14 16:01:09 2008
@@ -72,7 +72,9 @@
width = rect.width / 100 * 85;
height = rect.height / 100 * 85;
- session_path = gnome_util_home_file (BRASERO_SESSION_TMP_SESSION_PATH);
+ session_path = g_build_filename (g_get_user_config_dir (),
+ BRASERO_SESSION_TMP_SESSION_PATH,
+ NULL);
if (!session_path)
goto end;
@@ -164,8 +166,10 @@
if (state)
gtk_window_maximize (GTK_WINDOW (app->mainwin));
- /* now we start the project if any */
- project_path = gnome_util_home_file (BRASERO_SESSION_TMP_PROJECT_PATH);
+ /* now we start the project if any */
+ project_path = g_build_filename (g_get_user_config_dir (),
+ BRASERO_SESSION_TMP_PROJECT_PATH,
+ NULL);
if (!load_project
|| !g_file_test (project_path,G_FILE_TEST_EXISTS)) {
g_free (project_path);
@@ -196,8 +200,10 @@
xmlTextWriter *session;
if (save_project)
- project_path = gnome_util_home_file (BRASERO_SESSION_TMP_PROJECT_PATH);
- else
+ project_path = g_build_filename (g_get_user_config_dir (),
+ BRASERO_SESSION_TMP_PROJECT_PATH,
+ NULL);
+ else
project_path = NULL;
cancel = brasero_project_manager_save_session (BRASERO_PROJECT_MANAGER (app->contents),
@@ -210,7 +216,9 @@
return TRUE;
/* now save the state of the window */
- session_path = gnome_util_home_file (BRASERO_SESSION_TMP_SESSION_PATH);
+ session_path = g_build_filename (g_get_user_config_dir (),
+ BRASERO_SESSION_TMP_SESSION_PATH,
+ NULL);
if (!session_path)
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]