Need Help on Button widget
- From: IKSAL Sebastien <sebastien iksal enst-bretagne fr>
- To: GTK List <gtk-list redhat com>
- Subject: Need Help on Button widget
- Date: Tue, 09 Feb 1999 09:32:40 +0100
Hello,
I work with gtk+-1.0.6, and I want to have up and down arrows as
buttons, but when I compile
this lines :
> CategBoxUp = gtk_button_new();
> glade_pixmapup = gdk_pixmap_create_from_xpm ((MainWidgets[0])->window, &glade_maskup,
> &(MainWidgets[0])->style->bg[GTK_STATE_NORMAL],
> "./icons/up.xpm");
> PixmapUp = gtk_pixmap_new (glade_pixmapup, glade_maskup);
> gdk_pixmap_unref (glade_pixmapup);
> gdk_bitmap_unref (glade_maskup);
> gtk_widget_set_usize (CategBoxUp, 30, 30);
> gtk_fixed_put (GTK_FIXED (CategBoxFixed3), CategBoxUp, 465, 200);
> gtk_container_add (GTK_CONTAINER (CategBoxUp), PixmapUp);
> gtk_widget_show (CategBoxUp);
I have the button in my window, but no pixmap on it.
Have you got an idea??
Perhaps it's not the good way to make it??
Thanks
Seb
--
__________________________________________________________________________
M. Sebastien Iksal Email:sebastien.iksal@enst-bretagne.fr
Etudiant en DEA MIASH au Departement IASC
(http://liasc.enst-bretagne.fr/)
ENST de Bretagne Tel: (33) 02 98 00 10 45
ZI de Kernevent Fax: (33) 02 98 00 10 30
BP 832, 29285 BREST CEDEX
___________________________________________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]