Re: [gtk-list] application icon...
- From: Sven Köpfer <gtk koepfer de>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] application icon...
- Date: Wed, 30 Jun 1999 07:59:41 +0200
Ron Forrester schrieb:
> Perhaps the reason I can't find info on this is because it's not the
> responsbility of gtk+, but just in case.
>
> Assuming I have an xpm file (or a var pointing to on in my code), how
> can I set the application icon to it?
>
> tia
> rjf&
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
Hi,
try this routine:
/*
------------------------------------------------------------------------------------
*/
/* "Main Window"
Icon */
/*
------------------------------------------------------------------------------------
*/
void
set_window_icon (GtkWidget * this_window)
{
#include "pixmaps/icon.xpm"
GdkPixmap *pixmap;
GdkBitmap *mask;
pixmap = gdk_pixmap_create_from_xpm_d (this_window->window, &mask,
&this_window->style->bg[GTK_STATE_NORMAL], icon_xpm);
gdk_window_set_icon (this_window->window, NULL, pixmap, mask);
return;
}
Sven
--
\\|//
(o o)
--------------------------------------------------ooO-(_)-Ooo---
Sven Koepfer mailto:koepfer@eggenet.de
Systemadministrator http://www.eggenet.de
Eggenet GmbH Tel: +49 (0)5251 503-816
Tegelweg 25 Fax: +49 (0)5251 503-168
33102 Paderborn Ooo.
-------------------------------------------------.ooO----( )---
( ) (_/
\_)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]