Hi
File selection code must be written like this:

 filew = gtk_file_selection_new ("Folder Selection");
 gtk_file_selection_set_filename (GTK_FILE_SELECTION
 (filew), "*.png");
 gtk_widget_show(filew);
 switch(gtk_dialog_run(filew))
  {
    case GTK_RESPONSE_OK:
   gtk_file_selection_get_filename (GTK_FILE_SELECTION
    (filew));
   /* Now Ok has been clicked, do whatever you want */
   break;
    case GTK_RESPONSE_CANCEL:
     /* something else */
    default:
  }

P.S: I guess you can find this examples in `gtk-demo`
command if youre using any standard GTK distro... on
*Nix or Windows.

Cheers
Muthu.
--- srinivas <[EMAIL PROTECTED]> wrote:
> to select and display file/folder list, i can able
> to display widget,
> but i can't able to select the file. no buttons in
> the widget as delete
> file, rename, cancel and ok are not working. what
> else i have to include
> in my pgm to get that functionality.
> 
> thanks;
> 
> vasu.
> 
> 
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
>
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 


                
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to