doubt on gtk_file_selection_complete ()
- From: "john" <johnson cyberbabies com>
- To: gtk-app-devel-list gnome org
- Subject: doubt on gtk_file_selection_complete ()
- Date: Tue, 18 Nov 2003 01:31:42 -0600
hi there,
following is the piece of code i used to create a file selection box in
GTK,,,when the file selection widget is displayed it shows all the files
rather tha n the intended .h files...please help me in solving this...
file_selection_box = gtk_file_selection_new("Please select a file for
editing.");
gtk_file_selection_complete
(GTK_FILE_SELECTION(file_selection_box),"*.h");
/*-- Link the ok button to the store_filename function --*/
gtk_signal_connect (GTK_OBJECT
(GTK_FILE_SELECTION(file_selection_box)->ok_button),
"clicked", GTK_SIGNAL_FUNC
(store_filename), NULL);
/*-- Destroy the dialog box when the user clicks the ok_button --*/
gtk_signal_connect_object (GTK_OBJECT
(GTK_FILE_SELECTION(file_selection_box)->ok_button),
"clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), (gpointer)
file_selection_box);
/*-- Destroy the dialog box when the user clicks the cancel_button --*/
gtk_signal_connect_object (GTK_OBJECT
(GTK_FILE_SELECTION(file_selection_box)->cancel_button),
"clicked", GTK_SIGNAL_FUNC (gtk_widget_destroy), (gpointer)
file_selection_box);
/* Display the file dialog box */
gtk_widget_show (file_selection_box);
thanks for help in advance
regards
john
_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com
Looking for friendships,romance and more?
http://www.MyOwnFriends.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]