com gtk/php-gtk: GtkWidget::get_allocation() GtkWid get::class_path() GtkWidget::path(): ex t/gtk+/gtk.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    ca3f07876ad8ce9ac563697b212075e84e320c16
Author:    Christian Weiske <[email protected]>         Mon, 12 Jun 2006 17:45:42 +0000
Parents:   f4f1116a14d6d07f3288daa136e08160d699c529
Branches:  master

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

Log:
GtkWidget::get_allocation()
GtkWidget::class_path()
GtkWidget::path()

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


Diff:
ca3f07876ad8ce9ac563697b212075e84e320c16
diff --git a/ext/gtk+/gtk.overrides b/ext/gtk+/gtk.overrides
index 5e721d0..d746d3e 100644
--- a/ext/gtk+/gtk.overrides
+++ b/ext/gtk+/gtk.overrides
@@ -3382,6 +3382,39 @@ PHP_METHOD
 %% {{{ GtkWidget
 
 %%
+override gtk_widget_class_path
+PHP_METHOD
+{
+    guint length;
+    gchar *path;
+    gchar *path_reversed;
+
+    NOT_STATIC_METHOD();
+    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
+        return;
+
+    gtk_widget_class_path(GTK_WIDGET(PHPG_GOBJECT(this_ptr)), &length, &path,
+                          &path_reversed);
+    RETURN_STRING(path, 1);
+    g_free(path);
+    g_free(path_reversed);
+}
+
+%%
+override gtk_widget_get_allocation
+PHP_METHOD
+{
+    GtkAllocation allocation;
+
+    NOT_STATIC_METHOD();
+    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
+        return;
+
+    allocation = GTK_WIDGET(PHPG_GOBJECT(this_ptr))->allocation;
+    phpg_gboxed_new(&return_value, GDK_TYPE_RECTANGLE, &allocation, TRUE, TRUE TSRMLS_CC);
+}
+
+%%
 override gtk_widget_get_child_requisition
 PHP_METHOD
 {
@@ -3458,6 +3491,25 @@ PHP_METHOD
 }
 
 %%
+override gtk_widget_path
+PHP_METHOD
+{
+    guint length;
+    gchar *path;
+    gchar *path_reversed;
+
+    NOT_STATIC_METHOD();
+    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), ""))
+        return;
+
+    gtk_widget_path(GTK_WIDGET(PHPG_GOBJECT(this_ptr)), &length, &path,
+                          &path_reversed);
+    RETURN_STRING(path, 1);
+    g_free(path);
+    g_free(path_reversed);
+}
+
+%%
 override gtk_widget_size_request
 PHP_METHOD
 {
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.