com gtk/php-gtk: Add GtkWidget::is_visible() method . (patch from Scott): ext/gtk+/gtk.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    12f8394b36fe512826b5732de23a405425c5262e
Author:    Andrei Zmievski <[email protected]>         Tue, 2 May 2006 16:26:20 +0000
Parents:   9de801e24c8170e9b6f4b58a67447c2be8abff9f
Branches:  master

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

Log:
Add GtkWidget::is_visible() method. (patch from Scott)

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


Diff:
12f8394b36fe512826b5732de23a405425c5262e
diff --git a/ext/gtk+/gtk.overrides b/ext/gtk+/gtk.overrides
index db57e14..c8b5785 100644
--- a/ext/gtk+/gtk.overrides
+++ b/ext/gtk+/gtk.overrides
@@ -3279,6 +3279,23 @@ PHP_METHOD
     php_gtk_build_value(&return_value, "b", visible);
 }
 
+%%
+add GtkWidget is_visible
+PHP_METHOD
+{
+    zend_bool visible;
+
+    NOT_STATIC_METHOD();
+
+    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "")) {
+        return;
+    }
+
+    visible = GTK_WIDGET_VISIBLE(GTK_WIDGET(PHPG_GOBJECT(this_ptr)));
+
+    RETURN_BOOL(visible);
+}
+
 %% }}}
 
 %% {{{ GtkWindow
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.