com gtk/php-gtk: Implementing last missing GtkNotebook method: query_tab_label_packing: ext/gtk+/gtk.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    9a633280a93f390caac4ed0ba28f956997da86e1
Author:    Christian Weiske <[email protected]>         Thu, 1 Jun 2006 05:41:42 +0000
Parents:   b91e37163e6a36c63c7708d0275665882bb5acc4
Branches:  master

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

Log:
Implementing last missing GtkNotebook method: query_tab_label_packing

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


Diff:
9a633280a93f390caac4ed0ba28f956997da86e1
diff --git a/ext/gtk+/gtk.overrides b/ext/gtk+/gtk.overrides
index afb1fb2..cb0bef1 100644
--- a/ext/gtk+/gtk.overrides
+++ b/ext/gtk+/gtk.overrides
@@ -2400,6 +2400,34 @@ PHP_METHOD
 
 %% }}}
 
+%% {{{ GtkNotebook
+
+%%
+add-arginfo GtkNotebook query_tab_label_packing
+static
+ZEND_BEGIN_ARG_INFO(ARGINFO_NAME, 0)
+    ZEND_ARG_OBJ_INFO(0, child, GtkWidget, 1)
+ZEND_END_ARG_INFO();
+
+%%
+override gtk_notebook_query_tab_label_packing
+PHP_METHOD
+{
+    zval *php_child;
+    gboolean expand, fill;
+    GtkPackType pack_type;
+
+    NOT_STATIC_METHOD();
+
+    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "N", &php_child, gtkwidget_ce))
+        return;
+
+    gtk_notebook_query_tab_label_packing(GTK_NOTEBOOK(PHPG_GOBJECT(this_ptr)), GTK_WIDGET(PHPG_GOBJECT(php_child)), &expand, &fill, &pack_type);
+    php_gtk_build_value(&return_value, "(bbi)", expand, fill, pack_type);
+}
+
+%% }}}
+
 %% {{{ GtkPlug
 
 %%
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.