Re: Fw: [PHP-GTK] two-line sample of 'set_icon()', pliz, anyone? HELP?
| From: | Alan Knowles | Date: | Fri, 15 Mar 2002 05:57:08 +0000 |
| Subject: | Re: Fw: [PHP-GTK] two-line sample of 'set_icon()', pliz, anyone? HELP? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1551@lists.php.net to get a copy of this message | ||
this works for me :)
cute :)
regards
alan
$this->window->connect('configure_event', array(&$this,'callback_configure_event'));
function callback_configure_event($window) {
$w = $window->window;
list($pixmap,$mask) =
Gdk::pixmap_create_from_xpm($w,
NULL, dirname(__FILE__).'/phpmole.xpm');
$w->set_icon($w, $pixmap,$mask);
}
Steph wrote:
I still haven't had any mail, private or otherwise, about this. $gdkwindow->set_icon($icon_win, $gdkpixmap, $gdkbitmap); Can someone please confirm a) that it does in fact work *somewhere* *sometime* *somehow* and b) what would be an appropriate window to use for the first paramter? Thanks, you're all gorgeous x ----- Original Message ----- From: "Steph" <Steph.Fox@btinternet.com> To: "PHP-GTK gen" <php-gtk-general@lists.php.net> Sent: Thursday, March 14, 2002 9:55 AM Subject: [PHP-GTK] two-line sample of 'set_icon()', pliz, anyone? I just want to be absolutely certain it's not my code ... this has been a bad morning :-\ I *know* it works on nix, so any of you geeks out there happen to have a line that works on your box, please cd you throw it + a brief explanation of *where you took the window from* this way? - so I can at least doc it? - thanks, Steph