Re: GtkFileChooserButton bug?



On Sun, 19 Aug 2007 14:15:17 -0300, "Leonel Freire"
<leonelfreire gmail com> wrote:

#include <gtk/gtk.h>

int main(int argc, char *argv[])
{
    GtkWidget *window;
    GtkWidget *chooser;

    gtk_init(&argc, &argv);

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    chooser = gtk_file_chooser_button_new(NULL,
GTK_FILE_CHOOSER_ACTION_OPEN);
    gtk_widget_set_size_request(chooser, 300, -1);
    gtk_container_add(GTK_CONTAINER(window), chooser);

    gtk_widget_show_all(window);

    gtk_main();

    return 0;
}

1. Run this program.
2. Select one file.
3. "rm fileSelected" on a command line or just try to rename the
selected file.
4. Select another file.

I'm getting a segfault after this. I don't know if what's happening
have something to do with this:
http://bugzilla.gnome.org/show_bug.cgi?id=447378

Can someone confirm?
No, here[1] it works without a segfault or any other unexpected
behaviour. Which version of GTK do you use?


[1] enrico ukio: /tmp$ pkg-config --modversion gtk+-2.0
2.10.13


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
Powered by Debian GNU/Linux, GnuPG and Sylpheed.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]