Re: url doesn't show properly on first GtkAboutDialog creation with set_url_hook
| From: | Christian Weiske | Date: | Thu, 07 Sep 2006 14:07:47 +0000 |
| Subject: | Re: url doesn't show properly on first GtkAboutDialog creation with set_url_hook | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3397@lists.php.net to get a copy of this message | ||
Elizabeth,
> GtkAboutDialog has a problem when using set_url_hook
>
> The first time the GtkAboutDialog is created the url is not shown
> correctly (clickable), but the second time a GtkAboutDialog is created
> (and every subsequent time), it is shown correctly.
It has no problem.
1. URL hooks in the about dialog are global, and set_url_hook is static
2. You need to call the hook setup before setting the website. This also
solves your problem.
Nevertheless, we have a memleak here.
[Thu Sep 7 16:06:56 2006] Script: 'abouthook.phpw'
/data/cvs/phpgtk2/php-gtk/main/php_gtk.h(98) : Freeing 0x08EF18F4 (36
bytes), script=abouthook.phpw
[Thu Sep 7 16:06:56 2006] Script: 'abouthook.phpw'
/data/cvs/phpgtk2/php-gtk/main/php_gtk.h(95) : Freeing 0x08EF18B4 (16
bytes), script=abouthook.phpw
[Thu Sep 7 16:06:56 2006] Script: 'abouthook.phpw'
/data/cvs/php/php-5.1.4/Zend/zend_variables.h(45) : Freeing 0x08EF0084
(9 bytes), script=abouthook.phpw
/data/cvs/php/php-5.1.4/Zend/zend_variables.c(120) : Actual location
(location was relayed)
[Thu Sep 7 16:06:56 2006] Script: 'abouthook.phpw'
/data/cvs/php/php-5.1.4/Zend/zend_vm_execute.h(1766) : Freeing
0x08EF06AC (16 bytes), script=abouthook.phpw
=== Total 4 memory leaks detected ===
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc