#504808 GtkFileChooser: doesn't show removed folder on list, but shows it on completion

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
#504808#5
Date:
2008-11-07 12:20:51 UTC
From:
To:
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.

#504808#10
Date:
2008-11-07 14:23:36 UTC
From:
To:
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,

#504808#15
Date:
2008-11-07 14:34:24 UTC
From:
To:
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.

#504808#20
Date:
2008-11-07 15:30:39 UTC
From:
To:
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,

#504808#25
Date:
2008-11-07 17:05:45 UTC
From:
To:
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;
}