Index: ext/gtk+/php_gtk+_types.c =================================================================== RCS file: /repository/php-gtk/ext/gtk+/php_gtk+_types.c,v retrieving revision 1.26 diff -u -r1.26 php_gtk+_types.c --- ext/gtk+/php_gtk+_types.c 10 Oct 2003 03:41:37 -0000 1.26 +++ ext/gtk+/php_gtk+_types.c 3 Jan 2004 17:34:51 -0000 @@ -815,6 +815,25 @@ src_window, src_x, src_y, width, height); } +PHP_FUNCTION(gdk_window_set_decorations) +{ + GdkWMDecoration decorations; + NOT_STATIC_METHOD(); + + if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "i", &decorations)) + return; + + gdk_window_set_decorations(PHP_GDK_WINDOW_GET(this_ptr), decorations); +} + +PHP_FUNCTION(gdk_window_get_decorations) +{ + GdkWMDecoration decorations; + + gdk_window_get_decorations(PHP_GDK_WINDOW_GET(this_ptr), &decorations); + RETURN_LONG(decorations); +} + static function_entry php_gdk_window_functions[] = { {"GdkWindow", PHP_FN(no_direct_constructor), NULL}, {"raise", PHP_FN(gdk_window_raise), NULL}, @@ -827,6 +846,8 @@ {"property_delete", PHP_FN(gdk_window_property_delete), NULL}, {"set_icon", PHP_FN(gdk_window_set_icon), NULL}, {"copy_area", PHP_FN(gdk_window_copy_area), NULL}, + {"set_decorations", PHP_FN(gdk_window_set_decorations), NULL}, + {"get_decorations", PHP_FN(gdk_window_get_decorations), NULL}, {NULL, NULL, NULL} };