Commit Graph

80 Commits

Author SHA1 Message Date
Andrei Zmievski 50d724cc35 Pass EG to startup function. 2001-07-10 21:41:19 +00:00
Frank M. Kromann 002e2aa47d Adding windows specific file 2001-07-10 21:23:09 +00:00
Andrei Zmievski 0a3ce07463 Pass module number and EG to constant registering functions. 2001-07-10 20:55:44 +00:00
Andrei Zmievski 011a76e8e4 This implements a new build system for PHP-GTK. It is based on PHP build
system and is necessary in order to keep adding support for GtkObject
based extensions such as GtkHtml, Bonobo, GtkScintilla and others.

The only currently implemented extensions are Gtk+ and libglade. Each
extension (except for Gtk+, obviously) can be enabled or disabled
from the 'configure' command-line.

The new build process for CVS versions of PHP-GTK is such:

./buildconf
./configure
make
2001-07-10 18:27:52 +00:00
Frank M. Kromann 6a7be699ae Moved function back to .c file and declared it as extern in .h 2001-05-22 16:40:43 +00:00
Frank M. Kromann edafc69858 Fixing compilation on Win32 2001-05-21 18:55:15 +00:00
Andrei Zmievski 41171f32ec Implemented GtkObject::emit() and supporting code. 2001-05-12 04:19:11 +00:00
Andrei Zmievski 5654205a38 Support exotic types rudimentarily (is that a word?). 2001-05-11 17:59:35 +00:00
Andrei Zmievski 5bf56c87e8 Added support for getting and setting GtkObject arguments via get_arg() and
set_arg() methods.
2001-05-11 17:54:24 +00:00
Andrei Zmievski b0daf29b99 Break out type name retrieval into a separate function. 2001-05-10 19:21:19 +00:00
Andrei Zmievski c838301f43 * Fix checking of argc upon startup.
* Added GtkObject::get() method - may be renamed soon.
2001-05-10 18:56:42 +00:00
Andrei Zmievski 00f4266d8c Can't wrap events properly as they are not refcounted. 2001-05-05 05:22:55 +00:00
Andrei Zmievski ecec440ec8 Allow assigning custom props on overloaded props. 2001-05-04 15:41:48 +00:00
Andrei Zmievski 3d824f5574 Nuke the object destruction since it's not necessary after the latest changes. 2001-05-04 15:37:06 +00:00
Andrei Zmievski 98d6f7e5e9 * Cleaned up cruft from the code generator that was left over from
trying to handle byref args automatically.
* Started working on having only one object wrapper for each boxed type
  pointer. Obviously broke stuff, but will fix soon.
2001-05-04 04:31:40 +00:00
Andrei Zmievski 8503b24ff1 Setup type hash in preparation for a nice experiment. 2001-05-03 21:21:32 +00:00
Andrei Zmievski 9b2f5b7c91 One more place to restrict for now. 2001-05-03 03:29:04 +00:00
Andrei Zmievski 2e117f3f93 Properly detect type mismatches and other errors when assigning to overloaded
properties.
2001-05-03 03:20:11 +00:00
Andrei Zmievski cf65ca8155 Changed the variable name to result to indicate what it really does.
Added PG_ERROR code because SUCCESS and FAILURE are not flexible enough.
2001-05-02 18:29:08 +00:00
Andrei Zmievski 076f4f48ad Check for getter_retval before assigning the result. 2001-05-02 15:40:16 +00:00
Andrei Zmievski 05ada3676b Remove experimental definitions. 2001-05-02 15:28:43 +00:00
Andrei Zmievski 946e0e3feb * Since Zend engine's object overloading is fairly broken, I implemented an
emulation layer that takes care of all the necessary details. So, now it's
  possible to set properties on Gtk objects and read them later, e.g.
  $window->foo[0] = $clist.
* Cleaned up boxed types get property handlers to conform to the new system.
2001-05-02 04:23:02 +00:00
Andrei Zmievski 6f2ec33836 More work. 2001-04-27 20:54:51 +00:00
Andrei Zmievski 602f2dc57a Now the explicit property chain support is getting into shape. 2001-04-27 16:25:05 +00:00
Andrei Zmievski 1a62f9722d More hacking on that property problem. 2001-04-27 04:42:45 +00:00
Andrei Zmievski ee03fe1c1a More work on experimental fix for setting object properties. 2001-04-26 21:03:28 +00:00
Andrei Zmievski 09470499f3 Experimental set property function. 2001-04-26 19:42:48 +00:00
Andrei Zmievski 291e474cad Adding a couple more properties to GtkCTreeNode. 2001-04-22 21:59:28 +00:00
Andrei Zmievski 01c37a9baf * Optimized internal resource creation a bit, now accessing overloaded
properties will not keep creating resources as much as before.
* A bit more work on GtkCTree.
2001-04-13 21:58:41 +00:00
Andrei Zmievski e229852f85 * Added internal php_gtk_parse_args_hash_quiet() function.
* Added GtkMenu::popup().
2001-04-13 05:45:50 +00:00
Andrei Zmievski 6319753be5 * Added GtkCTree 'selection' and 'row_list' properties. They are not really
GtkCTree properties, but rather belong to underlying GtkCList, but GtkCTree
  overloads them.
* Fixed a bug that would corrupt object type when setting cascaded property.
* Fixed access of GtkCTreeNode 'children' property.
* Adjusted gtk.php sample according to above changes.
2001-04-13 04:37:54 +00:00
Andrei Zmievski b8fc0e915b * Fixed up boxed arg handling in the generator.
* Moved helper structs/classes into php_gtk_types.c and created constructors
  for them.
* A bit more work on GtkCTree example.
2001-04-10 01:46:38 +00:00
Andrei Zmievski 90b3dafc29 * Implemented better separation of GdkWindow, GdkPixmap, and GdkBitmap.
* Added GtkCList 'row_list' property and GtkCListRow helper class.
* Finally fixed GtkCTree::insert_row() for good. No wonder it wasn't working.
* Added GtkCTree::node_set_row_data(), GtkCTree::node_get_row_data().
* More work on GtkCTree example in gtk.php.
2001-03-31 22:23:12 +00:00
Andrei Zmievski 1ec5eb4935 * Added gdk::pixmap_create_from_xpm_d().
* Added GtkCList properties: sort_column, sort_type, selection, selection_mode.
* Some constructors did not invalidate objects upon errors, fixed now.
* Added GtkRadioMenuItem, GtkRadioButton constructors.
2001-03-20 20:32:15 +00:00
Andrei Zmievski 9295e61216 * Added GtkList->selection property.
* Fixed a crash in GladeXML::signal_connect() when passing extra arguments.
* Fixed cascading property access on objects.
2001-03-16 04:18:14 +00:00
Andrei Zmievski 98a258e182 Use config.h instead of php_config.h. 2001-03-13 17:59:27 +00:00
Andrei Zmievski 0934fb8d84 Include it in appropriate file. 2001-03-13 17:07:48 +00:00
Frank M. Kromann 6287301d30 Removed prototype and added include of ext/standard/file.h 2001-03-13 17:05:01 +00:00
Frank M. Kromann d6e7a1a10a Adding missing prototype 2001-03-13 16:43:38 +00:00
Andrei Zmievski 8503b1ed0d We don't want to have static declarations for items we may not have,
so let's have make_reg_items.php output appropriate info.
2001-03-13 13:59:52 +00:00
Frank M. Kromann af7fa15aec Adding missing prototypes 2001-03-13 07:59:42 +00:00
Andrei Zmievski 3089bc4c47 * Re-engineered the build system a bit to accomodate the need to build
additional modules.
* Fixed GDK locale support (thanks to Alex Bokovoy).

Oh, and added libglade support.
2001-03-13 05:52:38 +00:00
Andrei Zmievski f8f2bc7a6a Properly return new GtkStyle from constructor. 2001-03-13 05:41:18 +00:00
Andrei Zmievski 8e12f576af * resource type argument parsing
* improvements to php_gtk_is_callable
2001-03-13 05:40:32 +00:00
Andrei Zmievski 3cf5ada1d7 Just in case, modifying php_gtk_build_value() to allow building
associative arrays.
2001-03-09 05:38:01 +00:00
Andrei Zmievski 568e8dbadd Unimplemented macro. 2001-03-08 04:01:27 +00:00
Andrei Zmievski d9824ffa19 Conditionally include gdkx.h 2001-03-08 03:57:02 +00:00
Andrei Zmievski a78c212cae * Added 'child' property to GtkBin and its descendants.
* Added an internal function for querying color values (not used yet).
2001-03-08 02:35:50 +00:00
Andrei Zmievski f9058c3f1f * Fixed function entry name generation.
* Added Gtk::true() and Gtk::false(). Yes, these are just what they look
  like - functions that return true and false. Handy for certain callbacks.
* Fixed connect_object() semantics, it only requires two arguments now.
* Standardized all callback marshallers - callbacks are now smoother than
  Jennifer Alba's bottom and they all take user supplied extra arguments.
* Moved callback validation right up to the call time, so that callbacks
  included from other files could be used as well.
* This necessitated better error messages - so now if it the callback is
  not valid, the filename and line number where it was specified are shown.
* Updated gtk.php and list.php to use connect_object() as an example.
2001-03-07 05:37:22 +00:00
Andrei Zmievski 1e4378d830 * Each factory item can now specify as the last entry an array of
additional arguments to be passed to the callback.
* Implemented GtkCombo::set_popdown_strings(), see gtk.php for example.
* Added GdkPixmap::create_from_xpm().
* Added toggle buttons and entry examples to gtk.php.
2001-03-06 04:53:39 +00:00