GtkFileChooserDialog and profilers
- From: Carlo Agrusti <carlo-ag libero it>
- To: gtk-app-devel-list gnome org
- Subject: GtkFileChooserDialog and profilers
- Date: Wed, 27 Oct 2004 13:22:57 +0200
Hi all,
does anybody know why a call to gtk_file_chooser_dialog_new causes
valgrind to crash and memprof to freeze? Or am I doing something wrong?
I had this strange behaviour even with this simple test code:
#include <gtk/gtk.h>
int main (int argc, char * argv[]) {
GtkWidget * dialog;
char * filename;
gtk_init (&argc, &argv);
dialog = gtk_file_chooser_dialog_new (
"Open File",
NULL,
GTK_FILE_CHOOSER_ACTION_OPEN,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
NULL);
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
filename = gtk_file_chooser_get_filename (
GTK_FILE_CHOOSER (dialog));
g_free (filename);
}
gtk_widget_destroy (dialog);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]