summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2005-04-21 00:56:05 +0000
committerGlynn Foster <gman@src.gnome.org>2005-04-21 00:56:05 +0000
commit6d386ddda5e4552aeda28b104242626ff05b10c5 (patch)
treea9a4a9416ab5e5d3397ec9a8d36a556a0856abbf /src
parentUpdated Canadian English translation. (diff)
downloadzenity-6d386ddda5e4552aeda28b104242626ff05b10c5.tar.gz
zenity-6d386ddda5e4552aeda28b104242626ff05b10c5.tar.bz2
zenity-6d386ddda5e4552aeda28b104242626ff05b10c5.zip
Fix for #171838, from Carlos Parra.
2005-04-20 Glynn Foster <glynn.foster@sun.com> * src/fileselection.c: Fix for #171838, from Carlos Parra.
Diffstat (limited to 'src')
-rw-r--r--src/fileselection.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fileselection.c b/src/fileselection.c
index 69304374..4e51eec2 100644
--- a/src/fileselection.c
+++ b/src/fileselection.c
@@ -64,7 +64,10 @@ void zenity_fileselection (ZenityData *data, ZenityFileData *file_data)
if (file_data->uri) {
dir = g_path_get_dirname (file_data->uri);
- gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), dir);
+
+ if (g_path_is_absolute (file_data->uri) == TRUE)
+ gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), dir);
+
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);
bgstack15