zenity r1461 - in trunk: . src
- From: lucasr svn gnome org
- To: svn-commits-list gnome org
- Subject: zenity r1461 - in trunk: . src
- Date: Fri, 9 Jan 2009 00:08:02 +0000 (UTC)
Author: lucasr
Date: Fri Jan 9 00:08:01 2009
New Revision: 1461
URL: http://svn.gnome.org/viewvc/zenity?rev=1461&view=rev
Log:
2009-01-09 Lucas Rocha <lucasr gnome org>
* src/fileselection.c (zenity_fileselection): correctly handle
--filename option on file selection mode (Fixes bug #564552).
Patch from Gilles Detillieux.
Modified:
trunk/ChangeLog
trunk/src/fileselection.c
Modified: trunk/src/fileselection.c
==============================================================================
--- trunk/src/fileselection.c (original)
+++ trunk/src/fileselection.c Fri Jan 9 00:08:01 2009
@@ -76,7 +76,10 @@
if (file_data->uri[strlen (file_data->uri) - 1] != '/') {
basename = g_path_get_basename (file_data->uri);
- gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), basename);
+ if (file_data->save)
+ gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), basename);
+ else
+ (void) gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (dialog), file_data->uri);
g_free (basename);
}
g_free (dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]