cvs: php-gtk / COPYING.LIB /generator gtk.overrides

From: Date: Mon, 19 Feb 2001 20:41:11 +0000
Subject: cvs: php-gtk / COPYING.LIB /generator gtk.overrides
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-20@lists.php.net to get a copy of this message
andrei Mon Feb 19 12:41:11 2001 EDT Modified files: /php-gtk COPYING.LIB /php-gtk/generator gtk.overrides Log: Override gtk_tree_item_new to allow specifying a label. Index: php-gtk/COPYING.LIB diff -u php-gtk/COPYING.LIB:1.1 php-gtk/COPYING.LIB:1.2 --- php-gtk/COPYING.LIB:1.1 Sat Feb 3 16:08:49 2001 +++ php-gtk/COPYING.LIB Mon Feb 19 12:41:11 2001 @@ -456,49 +456,3 @@ DAMAGES. END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Libraries - - If you develop a new library, and you want it to be of the greatest -possible use to the public, we recommend making it free software that -everyone can redistribute and change. You can do so by permitting -redistribution under these terms (or, alternatively, under the terms of the -ordinary General Public License). - - To apply these terms, attach the following notices to the library. It is -safest to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least the -"copyright" line and a pointer to where the full notice is found. - - <one line to give the library's name and a brief idea of what it does.> - Copyright (C) <year> <name of author> - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -Also add information on how to contact you by electronic and paper mail. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the library, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the - library `Frob' (a library for tweaking knobs) written by James Random Hacker. - - <signature of Ty Coon>, 1 April 1990 - Ty Coon, President of Vice - -That's all there is to it! - - Index: php-gtk/generator/gtk.overrides diff -u php-gtk/generator/gtk.overrides:1.6 php-gtk/generator/gtk.overrides:1.7 --- php-gtk/generator/gtk.overrides:1.6 Wed Feb 7 21:02:17 2001 +++ php-gtk/generator/gtk.overrides Mon Feb 19 12:41:11 2001 @@ -671,6 +671,35 @@ php_gtk_object_init(wrapped_obj, this_ptr); } %% +ignore gtk_tree_item_new_with_label +%% +override gtk_tree_item_new +PHP_FUNCTION(wrap_gtk_tree_item_new) +{ + GtkObject *wrapped_obj; + gchar *text = NULL; + + NOT_STATIC_METHOD(); + + if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|s", &text)) { + php_gtk_invalidate(this_ptr); + return; + } + + if (text) + wrapped_obj = (GtkObject *)gtk_tree_item_new_with_label(text); + else + wrapped_obj = (GtkObject *)gtk_tree_item_new(); + + if (!wrapped_obj) { + php_error(E_WARNING, "%s(): could not create GtkTreeItem object", + get_active_function_name()); + return; + } + + php_gtk_object_init(wrapped_obj, this_ptr); +} +%% ignore gtk_button_new_with_label %% override gtk_button_new

« previous php.gtk (#20) next »