Revision: 388 Author: ntrel Date: 2006-06-02 05:00:33 -0700 (Fri, 02 Jun 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=388&view=rev
Log Message: ----------- Fix dialog path warnings for command-line files
Modified Paths: -------------- trunk/ChangeLog trunk/src/dialogs.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-06-02 11:32:37 UTC (rev 387) +++ trunk/ChangeLog 2006-06-02 12:00:33 UTC (rev 388) @@ -1,3 +1,8 @@ +2006-06-01 Nick Treleaven nick.treleaven@btinternet.com + + * src/dialogs.c: Fix dialog path warnings for command-line files. + + 2006-05-31 Nick Treleaven nick.treleaven@btinternet.com
* scintilla/PlatGTK.cxx:
Modified: trunk/src/dialogs.c =================================================================== --- trunk/src/dialogs.c 2006-06-02 11:32:37 UTC (rev 387) +++ trunk/src/dialogs.c 2006-06-02 12:00:33 UTC (rev 388) @@ -130,8 +130,9 @@ locale_filename = g_locale_from_utf8(initdir, -1, NULL, NULL, NULL); if (locale_filename == NULL) locale_filename = g_strdup(initdir);
- gtk_file_chooser_set_current_folder( - GTK_FILE_CHOOSER(app->open_filesel), locale_filename); + if (g_path_is_absolute(locale_filename)) + gtk_file_chooser_set_current_folder( + GTK_FILE_CHOOSER(app->open_filesel), locale_filename);
g_free(initdir); g_free(locale_filename); @@ -180,7 +181,10 @@ gchar *locale_filename = g_locale_from_utf8(doc_list[idx].file_name, -1, NULL, NULL, NULL); if (locale_filename == NULL) locale_filename = g_strdup(doc_list[idx].file_name);
- gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(app->save_filesel), locale_filename); + if (g_path_is_absolute(locale_filename)) + gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(app->save_filesel), locale_filename); + else + gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(app->save_filesel), locale_filename); g_free(locale_filename); } else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.