Commit Graph

  • 48c9118652 ChangeLog update 2005-03-27 01:34:20 +00:00
  • eb1e36ed65 Modify parameter parsing: if ^ is encountered before a specifier, perform all the necessary checks, but return the parameter as zval. This is necessary for property-based constructors. Andrei Zmievski 2005-03-26 07:12:54 +00:00
  • d8f71b7682 Ignore gtk_true/false. Andrei Zmievski 2005-03-26 06:25:03 +00:00
  • 934ba73f9d - Move generic phpg_handler_marshal() to phpg_support.c. - Implement gtk::quit_add(). Andrei Zmievski 2005-03-26 06:23:50 +00:00
  • 9a05f863a3 Typo. Andrei Zmievski 2005-03-26 06:02:47 +00:00
  • ac2fa975a2 Adjust to use g_object_new() for instantiation. First move towards complete freedom of widget subclassing. Andrei Zmievski 2005-03-26 05:52:18 +00:00
  • 7405c6c375 Require newer versions of libraries. Andrei Zmievski 2005-03-26 05:51:44 +00:00
  • cbb4489b41 *** empty log message *** Andrei Zmievski 2005-03-26 05:24:59 +00:00
  • c613e0ac4f Implementn coverage statistics. Andrei Zmievski 2005-03-26 05:22:05 +00:00
  • 676fe3bfe3 Ah, what the hell, let's support interfaces too in phpg_create_class(). Andrei Zmievski 2005-03-26 04:46:22 +00:00
  • 6fa32fe225 - Implement phpg_create_class() (no interface support yet). - Use phpg_create_class() to register PHP class wrappers for those GType's that are not listed in .defs files but can find their way to userland. Andrei Zmievski 2005-03-26 04:39:48 +00:00
  • 082000dd71 ChangeLog update 2005-03-26 01:37:59 +00:00
  • 38e459b537 - Allow addition of __construct method. - Do not generate constructors for abstract types. Andrei Zmievski 2005-03-25 07:14:27 +00:00
  • 93b0029bbd Implement default GObject constructor. Andrei Zmievski 2005-03-25 06:54:46 +00:00
  • 40f023d040 ChangeLog update 2005-03-25 01:34:13 +00:00
  • 08c4a08fda Implement GdkRectangle::intersect() and ::union(). Andrei Zmievski 2005-03-24 06:04:02 +00:00
  • f0e483916f Fix generation error that resulted in a wrong header file being created. Andrei Zmievski 2005-03-24 05:05:58 +00:00
  • e97a2594dd Some modifications to the build system to avoid aclocal problems. Andrei Zmievski 2005-03-24 04:52:45 +00:00
  • 9b6fff5e80 ChangeLog update 2005-03-23 01:35:26 +00:00
  • 9fd13d6266 Whew. It all started with because I had to Andrei Zmievski 2005-03-22 00:13:47 +00:00
  • 67a7d67d6a ChangeLog update 2005-03-21 01:42:55 +00:00
  • 4d7c09ff66 Implement GtkDialog constructor(). Andrei Zmievski 2005-03-20 05:19:36 +00:00
  • 325ee573c6 If any of the argument type handlers fail in constructors, we need to throw an exception. Andrei Zmievski 2005-03-20 04:24:13 +00:00
  • d07c79188e Adjust Makefile slightly so that the #line directives refer to full path. Andrei Zmievski 2005-03-20 03:54:58 +00:00
  • 90db3b1cb7 Implement GtkMessageDialog constructor. Andrei Zmievski 2005-03-20 03:53:48 +00:00
  • 3689ae30b3 ChangeLog update 2005-03-20 01:35:58 +00:00
  • ee2043981c Make error messages display Class::method(). Andrei Zmievski 2005-03-19 21:19:48 +00:00
  • fb4e4a5eed Make it that "PHP_METHOD" in overrides only indicates the start of the function and its class/method are provided by the generator. Andrei Zmievski 2005-03-19 21:09:42 +00:00
  • f816bdd44a Fix class naming. Andrei Zmievski 2005-03-19 09:13:22 +00:00
  • abdacfc035 - Make generator output '#line' references in the generated file, so that we can much more easily pinpoint which line in overrides caused the compilation error or warning. - Get rid of large chunks of old/unused generator code. Andrei Zmievski 2005-03-19 09:09:48 +00:00
  • 6dd9992b22 ChangeLog update 2005-03-19 01:35:51 +00:00
  • c206ef589f Register priority constants. Andrei Zmievski 2005-03-18 07:21:50 +00:00
  • 7b378217e7 Add phpg_register_int_constant(). Andrei Zmievski 2005-03-18 07:21:30 +00:00
  • 78e1540ee4 ChangeLog update 2005-03-18 01:38:13 +00:00
  • 56004a7cd5 Finally make our generation display and logging better. Too many people were apparently getting confused by "Could not write function..". Andrei Zmievski 2005-03-17 05:36:07 +00:00
  • ab30dd89bd ChangeLog update 2005-03-17 01:44:19 +00:00
  • 40865f5467 Fix typo. Andrei Zmievski 2005-03-17 01:18:23 +00:00
  • 27dfa84bc7 Move php_gtk_ext_registry init/destroy into module cycle. Andrei Zmievski 2005-03-16 04:08:58 +00:00
  • 681b2cc2e9 ChangeLog update 2005-03-16 01:38:18 +00:00
  • 6614c96f49 Add phpg_support.c file. Please run ./buildconf again. Andrei Zmievski 2005-03-15 20:38:58 +00:00
  • 2eaf824056 *** empty log message *** Andrei Zmievski 2005-03-15 19:30:40 +00:00
  • 60f26190dc Implement gtk::timeout_add_priority(). Andrei Zmievski 2005-03-15 06:32:38 +00:00
  • c2fabc8b2c Implement ability to add extra methods in overrides. Andrei Zmievski 2005-03-15 06:32:25 +00:00
  • 12e4c8487f Move some support functions to phpg_support.c. Andrei Zmievski 2005-03-15 06:13:36 +00:00
  • 7f9d3fbc2c Implement gtk::timeout_add(); Andrei Zmievski 2005-03-15 06:12:14 +00:00
  • 97ed4ceb00 ChangeLog update 2005-03-15 01:44:22 +00:00
  • 0d5021d16c Make it possible to include files from inside overrides. Andrei Zmievski 2005-03-14 03:27:26 +00:00
  • 79120a3d3c ChangeLog update 2005-03-14 01:42:29 +00:00
  • 14ef5b6fce *** empty log message *** Andrei Zmievski 2005-03-13 23:46:07 +00:00
  • 91d905e18b Update. Andrei Zmievski 2005-03-13 23:46:02 +00:00
  • 1072f9326c Implement support for fine-grained custom marshalling of boxed types, which will usually happen when invoking callbacks. Andrei Zmievski 2005-03-13 23:44:51 +00:00
  • 2d4f84763f ChangeLog update 2005-03-13 01:36:11 +00:00
  • cc74f663df Since we lack a garbage collector, we need to fake it. We need to override del_ref handler on the object, which will make sure that our wrapper is destroyed only if the referent gobject also has refcount of 1, which we means that only we own it. Otherwise, we need to keep our wrapper from being destroyed and save a pointer to the wrapper in the gobject with notification turned on, so that when gobject is destroyed by Gtk+ our wrapper is destroyed as well. Andrei Zmievski 2005-03-12 06:34:29 +00:00
  • e371503066 ChangeLog update 2005-03-12 01:35:57 +00:00
  • 232fecd958 Thoughts on reference counting and wrappers. Andrei Zmievski 2005-03-11 07:29:06 +00:00
  • d0d92dd2e2 ChangeLog update 2005-03-11 01:52:09 +00:00
  • 2482f773b4 If a closure is connected to the 'destroy' signal, then it will be invalidated after the GObject is destroyed, so we cannot call g_closure_invalidate() on it in phpg_free_gobject_storage(). Instead, we install another invalidation notifier that will remove the closure from the watched list. Andrei Zmievski 2005-03-10 21:35:29 +00:00
  • 5f26f3091e In phpg_get_properties_helper() we need to set the refcount on read zvals to 1 since the actual read_property handler sets them to 0. Andrei Zmievski 2005-03-10 05:59:31 +00:00
  • acde80c586 ChangeLog update 2005-03-06 01:47:48 +00:00
  • ca1286b018 Implement PangoFontDescription() constructor and PangoLayout::get_pixel_extents(). Andrei Zmievski 2005-03-05 22:26:31 +00:00
  • 2788d8b2af - Use phpg_gboxed_check() with TRUE parameter for a complete check. - Implement write_dimension and has_dimension handlers for style helper. Andrei Zmievski 2005-03-05 22:25:00 +00:00
  • 2d9d44c93b - Fix check for return value of phpg_gvalue_get_enum/flags(). - Call phpg_gboxed_check() with FALSE parameter for a quick check only. Andrei Zmievski 2005-03-05 22:23:45 +00:00
  • cafd659b1f Use our own phpg_return_* macros. Andrei Zmievski 2005-03-05 22:22:16 +00:00
  • f9a01a59c8 Implement phpg_return_* macros, some of which mirror g_return_* ones, but we sometimes need to be able to return a value quietly. Andrei Zmievski 2005-03-05 22:21:16 +00:00
  • 403f33bc62 Add deprecation notices. Andrei Zmievski 2005-03-05 22:19:34 +00:00
  • 5807240348 PHP_GTK_GET() is no more. Use PHPG_GOBJECT(). Andrei Zmievski 2005-03-05 22:19:08 +00:00
  • 9eea594246 ChangeLog update 2005-03-05 01:34:50 +00:00
  • 62c9281257 Use instanceof_function() instead of our own one. Andrei Zmievski 2005-03-05 01:11:57 +00:00
  • 836d0ac1f3 Make GtkStyle properties use the new style helper object. Andrei Zmievski 2005-03-05 00:51:03 +00:00
  • b9cc74514d Implement internal style helper object for access to style property arrays. Andrei Zmievski 2005-03-05 00:49:18 +00:00
  • cbc1d1d770 - Fix "Invalid library: php_gtk2.so" message. - Pass TSRM parameters where needed. Andrei Zmievski 2005-03-04 18:29:59 +00:00
  • 352c3f5c50 Implement EXPOSE event type in GdkEvent properties. Andrei Zmievski 2005-03-04 05:39:42 +00:00
  • a652642db0 - Implement GdkFont::extents(). - Fix php_gtk_build_value() calls due to API changes. Andrei Zmievski 2005-03-04 05:03:06 +00:00
  • 3059f40642 Make php_gtk_build_value() behave like other functions: if a NULL zval* is passed in, create a value, otherwise work on the passed in one. Cleans up the mess it used to create before. Andrei Zmievski 2005-03-04 05:02:25 +00:00
  • 7f6de8daec Fix boxed type access. Andrei Zmievski 2005-03-04 04:59:39 +00:00
  • f5b07de14d ChangeLog update 2005-03-02 01:36:06 +00:00
  • 7d25db3a99 Make the build system produce php_gtk2.so instead of php_gtk.so. Andrei Zmievski 2005-03-01 20:20:47 +00:00
  • e8caaff1d8 Implement support for GError type. This allows us to do something like: Andrei Zmievski 2005-03-01 08:09:24 +00:00
  • f05c825eb8 Mark GdkPixbuf constructors. Andrei Zmievski 2005-03-01 08:08:17 +00:00
  • 6f3b0f4b18 Fix deprecation message. Andrei Zmievski 2005-03-01 05:32:09 +00:00
  • 77c980c7c8 Fix type check. Andrei Zmievski 2005-03-01 05:16:43 +00:00
  • 20f13c4e5b Add a custom arg type for GdkRectangle* so that one can pass either a full GdkRectangle object or 4-element array instead. Andrei Zmievski 2005-03-01 04:58:55 +00:00
  • 9585722ddc ChangeLog update 2005-02-28 01:40:00 +00:00
  • 4156d2374c - Add support for accessing properties for a couple of event types. - Also implement a way to easier get properties of classes that overrode read_property handler. Andrei Zmievski 2005-02-27 08:02:35 +00:00
  • 1223a17b2f Fix a couple of egregious bugs. - phpg_closure_marshal(): need to NULL-out the emalloc'ed parameter. - phpg_free_object_storage(): have to remove the cached handle information since the current object wrapper is going away. Andrei Zmievski 2005-02-27 04:57:41 +00:00
  • 3c108424b2 Implement infrastructure for overriding object handlers per-class. This allows us to do things like custom read/write handler for all of GdkEvent properties, and making objects behave like arrays when necessary. Andrei Zmievski 2005-02-27 03:39:06 +00:00
  • 5849627acc ChangeLog update 2005-02-27 01:35:21 +00:00
  • 3e2d31eb56 Typo Andrei Zmievski 2005-02-26 22:26:24 +00:00
  • d051557af5 *** empty log message *** Andrei Zmievski 2005-02-26 22:24:48 +00:00
  • 2670152aee Too much to describe. Andrei Zmievski 2005-02-26 22:24:21 +00:00
  • d6d589a1b3 Add fold markers. Andrei Zmievski 2005-02-26 05:55:26 +00:00
  • f6deb8dd63 - Support GBoxed and GObject types in conversion from zval to the GValue. - Rework the underlying object access macros a bit. Andrei Zmievski 2005-02-26 05:41:04 +00:00
  • 4e37f5429e Support boxed type in converstion from GValue to zval. Andrei Zmievski 2005-02-26 05:11:28 +00:00
  • b72c56ba1c Rename PHPG_GET() to PHPG_GOBJECT() to better reflect its function. Andrei Zmievski 2005-02-26 04:20:05 +00:00
  • 6d581d9374 Implement the rest of connect_*() methods. Andrei Zmievski 2005-02-26 04:02:48 +00:00
  • c78bf9f746 ChangeLog update 2005-02-25 01:36:00 +00:00
  • 6534e01600 - Implement GObject::connect(). - I guess the return value of read_property handler really does have to have refcount = 0 since it's a temporary value. Andrei Zmievski 2005-02-24 23:25:49 +00:00
  • 1d8f0c6268 Make sure that a valid zval is returned even in an error case. Andrei Zmievski 2005-02-24 23:25:15 +00:00
  • b40633a7dc - Make pi_hash persistent. - Change phpg_gvalue_to_zval() to operate on zval**, similar to phpg_gobject_new(). - Implement closure marshalling and cleanup. Andrei Zmievski 2005-02-24 06:53:55 +00:00
  • 116ce8de1d Move prop info hash handling into module init/shutdown function, since it needs to be persistent. Andrei Zmievski 2005-02-24 06:52:07 +00:00