com gtk/php-gtk: GtkWidget::size_requisition() need s to return a GtkRequisition object instead of modifying one: ext/gtk+/gtk.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    4d780226603527b1e8580fb478fb8716fc7a02b0
Author:    Christian Weiske <[email protected]>         Tue, 16 May 2006 17:48:14 +0000
Parents:   e9279fc86dbb189ea538aa86c6097b55c281638c
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=4d780226603527b1e8580fb478fb8716fc7a02b0

Log:
GtkWidget::size_requisition() needs to return a GtkRequisition object
instead of modifying one

Changed paths:
  M  ext/gtk+/gtk.overrides


Diff:
4d780226603527b1e8580fb478fb8716fc7a02b0
diff --git a/ext/gtk+/gtk.overrides b/ext/gtk+/gtk.overrides
index c8b5785..2a7c7d4 100644
--- a/ext/gtk+/gtk.overrides
+++ b/ext/gtk+/gtk.overrides
@@ -3213,6 +3213,20 @@ PHP_METHOD
     }
 }
 
+%%
+override gtk_widget_size_request
+PHP_METHOD
+{
+    GtkRequisition requisition;
+
+    NOT_STATIC_METHOD();
+
+    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
+        return;
+
+    gtk_widget_size_request(GTK_WIDGET(PHPG_GOBJECT(this_ptr)), &requisition);
+    phpg_gboxed_new(&return_value, GTK_TYPE_REQUISITION, &requisition, TRUE, TRUE TSRMLS_CC);
+}
 
 %%
 add-arginfo GtkWidget translate_coordinates
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.