Fix for #171838, from Carlos Parra.
2005-04-20 Glynn Foster <glynn.foster@sun.com> * src/fileselection.c: Fix for #171838, from Carlos Parra.
This commit is contained in:
parent
b2ea633296
commit
6d386ddda5
@ -1,3 +1,8 @@
|
|||||||
|
2005-04-20 Glynn Foster <glynn.foster@sun.com>
|
||||||
|
|
||||||
|
* src/fileselection.c: Fix for #171838, from Carlos
|
||||||
|
Parra.
|
||||||
|
|
||||||
2005-04-20 Glynn Foster <glynn.foster@sun.com>
|
2005-04-20 Glynn Foster <glynn.foster@sun.com>
|
||||||
|
|
||||||
* src/entry.c, src/option.c, src/zenity.h: Clean
|
* src/entry.c, src/option.c, src/zenity.h: Clean
|
||||||
|
@ -64,7 +64,10 @@ void zenity_fileselection (ZenityData *data, ZenityFileData *file_data)
|
|||||||
|
|
||||||
if (file_data->uri) {
|
if (file_data->uri) {
|
||||||
dir = g_path_get_dirname (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] != '/') {
|
if (file_data->uri[strlen (file_data->uri) - 1] != '/') {
|
||||||
basename = g_path_get_basename (file_data->uri);
|
basename = g_path_get_basename (file_data->uri);
|
||||||
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), basename);
|
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), basename);
|
||||||
|
Reference in New Issue
Block a user