logo       

cvs: php-gtk /ext/gtk+ gtk.overrides: msg#00017

Subject: cvs: php-gtk /ext/gtk+ gtk.overrides
cweiske         Sun Feb  5 08:56:35 2006 UTC

  Modified files:              
    /php-gtk/ext/gtk+   gtk.overrides 
  Log:
  Merged GtkListItem() and GtkListItem::new_with_label()
  
  
http://cvs.php.net/viewcvs.cgi/php-gtk/ext/gtk+/gtk.overrides?r1=1.150&r2=1.151&diff_format=u
Index: php-gtk/ext/gtk+/gtk.overrides
diff -u php-gtk/ext/gtk+/gtk.overrides:1.150 
php-gtk/ext/gtk+/gtk.overrides:1.151
--- php-gtk/ext/gtk+/gtk.overrides:1.150        Sat Feb  4 21:46:18 2006
+++ php-gtk/ext/gtk+/gtk.overrides      Sun Feb  5 08:56:35 2006
@@ -47,6 +47,7 @@
     gtk_image_menu_item_new_with_mnemonic
     gtk_init
     gtk_init_check
+    gtk_list_item_new_with_label
     gtk_menu_item_new_with_label
     gtk_menu_item_new_with_mnemonic
     gtk_radio_menu_item_new_with_label
@@ -1626,6 +1627,48 @@
 %% }}}
 
 
+%% {{{ GtkListItem
+
+%%
+add-arginfo GtkListItem __construct
+static
+ZEND_BEGIN_ARG_INFO_EX(ARGINFO_NAME, 0, 0, 0)
+    ZEND_ARG_INFO(0, label)
+ZEND_END_ARG_INFO();
+
+%% override gtk_list_item_new
+PHP_METHOD(GtkListItem, __construct)
+{
+    char *label;
+    zend_bool free_label;
+    GObject *wrapped_obj;
+
+    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|u", &label, &free_label)) {
+        PHPG_THROW_CONSTRUCT_EXCEPTION(GtkListItem);
+    }
+
+    phpg_warn_deprecated("use GtkTreeView" TSRMLS_CC);
+
+    if (ZEND_NUM_ARGS() == 1) {
+        wrapped_obj = (GObject *) gtk_list_item_new_with_label(label);
+        if (free_label) g_free(label);
+    } else {
+        wrapped_obj = (GObject *) 
g_object_newv(phpg_gtype_from_zval(this_ptr), 0, NULL);
+    }
+
+    if (!wrapped_obj) {
+        PHPG_THROW_CONSTRUCT_EXCEPTION(GtkListItem);
+    }
+
+    phpg_gobject_new(&return_value, wrapped_obj TSRMLS_CC);
+    if (ZEND_NUM_ARGS() == 1) {
+        g_object_unref(wrapped_obj); /* phpg_gobject_new() increments 
reference count */
+    }
+}
+
+%% }}}
+
+
 %% {{{ GtkMenu
 %%
 add-arginfo GtkMenu popup

-- 
PHP-GTK CVS Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe