dear all well this question is kind of related to the file selection widget. i have the following
GList *my_selection_list; //global // call back for ok button on file selection void on_file_selection_ok_button_clicked (GtkWidget * w, gpointer user_data) { . . gchar *file_selected ; file_selected = gtk_file_selection_get_filename (GTK_FILE_SELECTION (file_selection_widget)); . . . if (g_list_find(my_selection_list,file_selected)==NULL) { my_selection_list=g_list_append (my_selection_list,file_selected); g_print("file selected is %s\n",file_selected); . . } } so i want a file to be selected only once.this works the first time as the list is empty but next tries don't print the file name even though a different file is selected. i have tried many of these glist functions to no avail. please help Thanks _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list