- Package:
- libgtk2.0-0
- Source:
- gtk+2.0
- Description:
- GTK graphical user interface library - old version
- Submitter:
- Marco Túlio Gontijo e Silva
- Date:
- 2010-02-01 18:42:26 UTC
- Severity:
- minor
Steps to reproduce:
Using this simple code, or any fileChooser instance with
GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER:
#include <gtk/gtk.h>
int main (int argc, char **argv) {
GtkWidget *window, *fileChooser;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
fileChooser
= gtk_file_chooser_widget_new(GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER);
gtk_container_add(GTK_CONTAINER(window), fileChooser);
gtk_widget_show_all(window);
gtk_main();
return 0;
}
* Create a folder foo
* Run the program
* Remove folder foo
* Start typing in Name: f
The folder will not be on the list of files, but it'll complete it when you
start typing.
Le vendredi 07 novembre 2008 à 10:20 -0200, Marco Túlio Gontijo e Silva a écrit : Does it happen with the gnome-vfs filesystem backend, or only with the gtk+ backend? Thanks,
Em Sex, 2008-11-07 às 15:23 +0100, Josselin Mouette escreveu: I've tested gnome-vfs with ssh, and in this case it only updates the list when you go out and in of the folder, so at least the completion is integrated with the list. Maybe it's another bug that with gnome-vfs+ssh it's not updating the list when something is changed, but I think it's a more natural behaviour. Greetings.
Le vendredi 07 novembre 2008 à 12:34 -0200, Marco Túlio Gontijo e Silva a écrit : Using the gnome-vfs backend also affects the behavior for local files; I’d like to know whether this changes anything in this case. Thanks,
Em Sex, 2008-11-07 às 16:30 +0100, Josselin Mouette escreveu:
Sorry for that. I got the same behaviour here with gnome-vfs. Code:
#include <gtk/gtk.h>
int main (int argc, char **argv) {
GtkWidget *window, *fileChooser;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
fileChooser
= g_object_new(
GTK_TYPE_FILE_CHOOSER_WIDGET,
"action", GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER,
"file-system-backend", "gnome-vfs",
NULL);
gtk_file_chooser_set_local_only(GTK_FILE_CHOOSER(fileChooser), FALSE);
gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(fileChooser));
gtk_widget_show_all(window);
gtk_main();
return 0;
}