Commit Graph

69 Commits

Author SHA1 Message Date
Andrei Zmievski a13a97aa11 - Include gen_gtk.h in php_gtk+.h
- Implement GtkCombo::set_popdown_strings() and GdkWindow::get_pointer()
  (patch by Steph)
2005-10-01 19:13:26 +00:00
Christian Weiske 0d3fb6ee85 Small test suite for bugs.
To use it:
- install xautomation program (xte) from http://hoopajoo.net/projects/xautomation.html
- copy bugconfig.php.in to bugconfig.php and change the location of your
   php5 executable
- run bugrunner.php: It will execute all bug_*.phpw.
- If this scripts echo 'ok' means that everything was ok, the bug doesn't
   exist any more. However, if anything other than 'ok' is echoed: The bug
   still exists.
- All the single bug scripts can be run with "debug" as parameter
   which shows the real error message

I know that it's not nice, but it works for now.
2005-07-29 21:27:46 +00:00
Andrei Zmievski fb4e4a5eed Make it that "PHP_METHOD" in overrides only indicates the start of the
function and its class/method are provided by the generator.
2005-03-19 21:09:42 +00:00
Andrei Zmievski f9cf33ecdd Merged ZE2_PORT branch to HEAD. All PHP4 specific work needs to be done
on PHP_GTK_1 branch now.
2003-10-10 03:41:47 +00:00
Frank M. Kromann a8ee268bf2 Use the constant PHP_SHLIB_SUFFIX when loading the extension 2002-12-04 17:31:50 +00:00
Frank M. Kromann 976d70642e Adding CVS Id and changing <? to <?php 2002-11-25 18:22:05 +00:00
Andrei Zmievski 9b1cd4cac7 This mega-patch adjusts the build system so that it can work automatically
with either old or new PHP build system. It also updates copyright years
and fixes loading of rc files by test/gtk.php.

Extension writers should take notice of the changes in the build system.
2002-04-11 02:19:50 +00:00
Markus Fischer 7a91910b21 - Initial commit of GtkPieMenu widget. 2001-12-07 00:11:27 +00:00
Markus Fischer 810370642e - Initial commit of GtkScrollPane widget. 2001-12-07 00:08:51 +00:00
Markus Fischer 09863709b8 - Initial commit of GtkSPaned widget. 2001-12-07 00:07:15 +00:00
Markus Fischer 6157287712 - Initial commit of GtkComboButton widget. 2001-12-07 00:04:22 +00:00
Andrei Zmievski ca8642b870 Fix scribble example. 2001-11-29 20:39:54 +00:00
Markus Fischer 5fc06d0c8d Do proper checking if class already exists or not. 2001-11-17 19:05:29 +00:00
Andrei Zmievski aedec5897c - Don't show skeleton in configure.
- Adjust sqpane a bit.
2001-10-17 16:54:43 +00:00
Markus Fischer f4b1b713ae Added SQPane exmaple. 2001-10-14 16:30:08 +00:00
Andrei Zmievski 4f88704040 Made type checking of function parameters more forgiving. It won't complain
now that you passed an integer instead of a double, and so on. Only some
rules have been relaxed, the rest still stand.
2001-08-24 04:19:25 +00:00
Markus Fischer 11476e0b3e Accommodate to behave more like testgtk (distributed with GTK+ sources)
Fix create_file_selection
2001-08-22 13:31:53 +00:00
Markus Fischer e0e29a1d02 WS fix 2001-08-21 16:19:23 +00:00
Andrei Zmievski 742940f2dd - Fixed GtkWidget::intersect().
- Fixed GtkWidget::size_request() and GtkWidget::get_child_requisition().
- Added GtkBox::query_child_packing() and
  GtkNotebook::query_tab_label_packing(). (patch from Markus)
- Added notebook example to gtk.php. (patch from Markus)
2001-08-21 04:37:54 +00:00
Andrei Zmievski e94c939c10 Fix gtk.php. 2001-08-19 05:27:32 +00:00
Andrei Zmievski fa0c9b00aa Fix the event watcher example. 2001-08-18 05:55:14 +00:00
Andrei Zmievski 6b7986c752 - Fixed callbacks bug that would not invoke a callback if it took a parameter
by reference.
- Changed "GTK_TYPE_POINTER not supported" from warning to notice and made it
  return NULL instead of aborting.
- Integrated a patch from Markus that implements functions
  signal_(add|remove)_emission_hook(), signal_lookup(), signal_name() and adds
  a few more examples to gtk.php.
2001-08-18 05:49:34 +00:00
Andrei Zmievski 78b0f6d59c Changed PHP-visible extension name to 'php-gtk'. 2001-08-08 20:49:09 +00:00
Andrei Zmievski f3ff7e5ff9 Optimize the access to number of rows in the ctree. 2001-08-08 01:39:32 +00:00
Frank M. Kromann 4d1a97c708 Getting rid of some warnings 2001-08-07 21:55:02 +00:00
Andrei Zmievski c54b242081 oops 2001-08-07 21:02:42 +00:00
Andrei Zmievski 1eeebfb59f More interesting color scheme. 2001-08-07 21:01:09 +00:00
Frank M. Kromann c69b1a0f24 Adding sample xpm 2001-08-07 20:51:20 +00:00
Andrei Zmievski 664f39cc9b call_user_method_array() is deprecated 2001-08-07 20:48:23 +00:00
Andrei Zmievski 8ae066e3fb - Fix config.h.in generation.
- Changed GtkWidget::state() method to GtkWidget->state property.
- Removed GtkWidget::get_allocation(), it is redundant with GtkWidget->allocation
  property present.
- Implemented support for struct based classes (GdkRectable, GtkAllocation,
  GtkRequisition, etc).

0.1 is on the horizon.
2001-07-31 05:27:01 +00:00
Andrei Zmievski 9c69f34c64 Updated to match TSRM changes. 2001-07-30 19:13:15 +00:00
Andrei Zmievski 0ce5523c51 - Finished drag-n-drop support.
- Added drag-n-drop example to gtk.php.
- GdkAtom parsing was completely screwed up from theoretical point of view,
  but it was still working somehow. Fixed.
2001-07-30 05:11:15 +00:00
Andrei Zmievski 7fdb5817a6 Draw circle instead of square, it's less ugly that way. 2001-07-19 20:04:14 +00:00
Andrei Zmievski dee5632fce Actually add Scribble example. 2001-07-19 05:24:48 +00:00
Andrei Zmievski 42f15af56e Added GtkCTree::get_node_info(). 2001-05-23 16:59:39 +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 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 3040664b1a * Fixed Gdk::pixmap_create_from_xpm* to accept null for window parameter.
* Added Gdk::pixmap_colormap_create_from_xpm* methods.
* Allowed unsetting style in GtkCtree::node_set_row_style() by passing null.
* Added GtkCtree methods post_recursive(), post_recursive_to_depth(),
  pre_recursive(), pre_cursive_to_depth() that can be used to traverse the
  CTree.
* Fixed GtkCtree 'selection' property access.
* Finished CTree example in gtk.php.
2001-04-22 21:24:39 +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 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 eb3de03767 Fix 2001-04-10 03:39:49 +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 8c0fa64b5a * Added GtkCTree 'clist' property.
* Implemented GtkObject::set_data(), GtkObject::get_data(),
  GtkObject::connect_after(), GtkObject::connect_object_after().
* Started on GtkCTree example, which incidentally shows a bunch of other
  GTK+ stuff.
2001-03-28 04:29:26 +00:00
Andrei Zmievski ce89b5bbd2 * Added GtkColorSelection::get_color, GtkColorSelection::set_color().
* Added radio buttons, check buttons, color selection, and cursors examples
  to gtk.php.
2001-03-24 23:49:43 +00:00
Andrei Zmievski 5a66f8d653 Showing how to get the filename. 2001-03-20 21:07:31 +00:00
Andrei Zmievski 1763270203 Finished GtkCList example. 2001-03-20 20:28:45 +00:00
Andrei Zmievski 35eb9fa7f4 * Added GladeXML::signal_autoconnect(), docs later.
* Added GtkWidget 'style' property;
* Added GtkCList::prepend() and GtkCList::insert().
* Added single row insertion to CList example in gtk.php.
2001-03-20 05:01:21 +00:00
Andrei Zmievski a81a6211c0 CList example. Not finished yet. 2001-03-12 04:28:06 +00:00
Frank M. Kromann 85ca3a2b2e Fixing warning on call to connect function 2001-03-08 05:36:29 +00:00