gnope php gtk gui gnope.org  

FileChooserDialog

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
dnfeitosa



Joined: 13 Dec 2005
Posts: 2
Location: SP/Brasil

PostPosted: Sun May 07, 2006 7:27 am    Post subject: FileChooserDialog Reply with quote

Hi all,

I'm trying to create a GtkFileChooserDialog, but the 'Cancel' and 'Open' buttons aren't present... I'm using the following code:

Code:

<?php
  $fd = new GtkFileChooserDialog('Test dialog');
  $fd->set_action(Gtk::FILE_CHOOSER_ACTION_SAVE);
  $fd->connect_simple('destroy', array('gtk', 'main_quit'));

  $filter = new GtkFileFilter();
  $filter->add_pattern("*.php");
  $fd->add_filter($filter);
  $fd->show();

  gtk::main();
?>


I got from CVS and compiled PHP-GTK2 15 min. ago...

Thanks
Back to top
N!cKY



Joined: 19 Apr 2006
Posts: 12
Location: Mosbach/Germany

PostPosted: Sun May 07, 2006 2:23 pm    Post subject: Reply with quote

read this: http://www.gtk.org/api/2.6/gtk/GtkFileChooserDialog.html
Back to top
dnfeitosa



Joined: 13 Dec 2005
Posts: 2
Location: SP/Brasil

PostPosted: Sun May 07, 2006 3:25 pm    Post subject: Reply with quote

Thanks! Wink
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.