#39335 [Bgs->Opn]: Unresponsive PHP-GTK2 method

From: Date: Thu, 02 Nov 2006 00:26:54 +0000
Subject: #39335 [Bgs->Opn]: Unresponsive PHP-GTK2 method
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3516@lists.php.net to get a copy of this message
ID: 39335 Updated by: sfox@php.net Reported By: phporcaffeine at gmail dot com -Status: Bogus +Status: Open Bug Type: PHP-GTK related Operating System: Win XP Pro (SP2) PHP Version: 5.1.6 New Comment: Not actually bogus - there should really be a check for the status of set_url_hook() if possible, and some error message thrown if it's missing. I'd have assumed that the label was just that - a label - and not necessarily a link. Another alternative would be to make it call set_website() if there's no callback in place. Whatever. It doesn't matter which approach we take, it shouldn't fail silently anyway. Previous Comments: ------------------------------------------------------------------------ [2006-11-01 23:13:38] auroraeosrose@php.net This is expected behavior. You must use GtkAboutDialog::set_url_hook() with a usable callback in order for the website label to be displayed. I've added a note to the documentation. ------------------------------------------------------------------------ [2006-11-01 17:15:02] phporcaffeine at gmail dot com Description: ------------ GKT Version: 2 PHP Version: 5.1.4 (5.1.6 was the only 5.1.x listed) GtkAboutDialog::set_website_label() does not render any results. It doesn't generate any noticable errors either. It just doesn't do anything. Oddly enough though, GtkAboutDialog::set_website() works just fine. I have tried several implementations/uses of the method with no luck. ******************************************************* $gktAboutDialog->set_website_label("text"); //NO LUCK $gktAboutDialog->set_website_label($str); //NO LUCK GtkAboutDialog::set_website_label() //NOT STATIC METHOD ******************************************************** As far as I can see, the manual makes no mention of depreciation or not having been implemented yet. Thanks for looking into it, -Ryan Reproduce code: --------------- <?php //GTK CLASS CHECK if (!class_exists("gtk")) { die("The PHP-GTK class was not detected and therefore this file cannot continue"); } /****************************************/ $artists = array("Artist"); $authors = array("Developer"); $title = "Application Information"; $name = "Applcation Name"; $comments = "These are the comments"; $copyright = "Copyright " . date("Y") . "© All Rights Reserved"; $license = "This is the license"; $version = "1.0.0.0"; $website = "http://www.website.com"; $websitelabel = "Web Site Text"; /**************************************/ $about = new gtkAboutDialog(); $about->set_artists($artists); $about->set_authors($authors); $about->set_comments($comments); $about->set_copyright($copyright); $about->set_license($license); $about->set_name($name); $about->set_version($version); $about->set_website_label($websitelabel); $about->set_website($website); $about->set_title($title); $about->connect('destroy', 'main_quit'); $about->run(); gtk::main(); ?> Expected result: ---------------- I expect to see the literal of the data I provided to the GtkAboutDialog::set_website_label() method Actual result: -------------- I see nothing generated from the GtkAboutDialog::set_website_label() method. No errors are generated (I am using E_ALL) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39335&edit=1

« previous php.gtk.dev (#3516) next »