set_icon()
| From: | Francesco | Date: | Thu, 05 Sep 2002 22:05:51 +0000 |
| Subject: | set_icon() | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-2395@lists.php.net to get a copy of this message | ||
Hi,
I try the following code to change the window icon on win32, but it doesn't
seem to work (the icon remains the default one). Does anyone know if
gdkwindow::set_icon() works on win32 ?
thanks
// code
////////////////////////////////////////////////////////////////////////////
/////////////////
$window = &new gtkWindow();
$window->connect('configure-event', 'callback_configure_event');
function callback_configure_event($window) {
$window->realize();
$w = $window->window;
list($pixmap,$mask) =
Gdk::pixmap_create_from_xpm($w, null, 'images/icon.xpm');
$w->set_icon(null, $pixmap, $mask);
}
////////////////////////////////////////////////////////////////////////////
///////////////////////////////