Hi I'm developing gtk+ on windows platform and i got a weird output of filechooser on a window I am wondering if it's a bug or maybe i did something wrong here is the code and tested it on linux its working just fine but when i used it on vc++ 2008 the weird problem occur the black line when there is a declaration of filter but when i remove it it work's fine
here is a part of the code:
Quote:
GtkFileFilter *f;
GtkWidget *dialog;
dialogmap = gtk_file_chooser_widget_new(GTK_FILE_CHOOSER_ACTION_OPEN);
gtk_widget_set_size_request(GTK_WIDGET(dialogmap), 600, 400);
gtk_widget_queue_draw(GTK_WIDGET(dialogmap));
if(strcmp(recording_list.rec_path, ".") == 0)
#if WIN32
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialogmap), "C:\\");
#else
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialogmap), "/home/");
#endif
else
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(dialogmap), recording_list.rec_path);
f = gtk_file_filter_new();
gtk_file_filter_set_name(GTK_FILE_FILTER(f), "LAS Files");
gtk_file_filter_add_pattern(GTK_FILE_FILTER(f), "*.las");
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialogmap), f);
and to show it i usedgtk_widget_show() for each widget rather than using gtk_widget_show_all(). [/quote]
i will be including the image to the next post