Gtk_FileDrop
[ class tree: Gtk_FileDrop ] [ index: Gtk_FileDrop ] [ all elements ]

Source for file example.php

Documentation is available at example.php

  1. <?php
  2. /**
  3. *   Test application for the Gtk_FileDrop class
  4. *   @author Christian Weiske <cweiske@cweiske.de>
  5. */
  6. if (!extension_loaded('gtk')) {    
  7.     dl('php_gtk.' . PHP_SHLIB_SUFFIX);
  8. }
  9. require_once('Gtk/FileDrop.php');
  10.  
  11. $window &new GtkWindow();
  12. $window->set_default_size(30030);
  13. $window->connect_object('destroy'array('gtk''main_quit'));
  14. $window->show();
  15.  
  16. $entry =new GtkEntry();
  17. $window->add($entry);
  18. $entry->set_text('drop text files on me');
  19. Gtk_FileDrop::attach($entryarray('text/plain'));
  20.     
  21. $window->show_all();
  22. gtk::main();
  23. ?>

Documentation generated on Mon, 11 Mar 2019 15:40:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.