Re: ImageButton

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Just make a regular button and turn off the relief decoration and the border:
>
>        gtk_button_set_relief( GTK_BUTTON( but ), GTK_RELIEF_NONE );
>        gtk_container_set_border_width( GTK_CONTAINER( but ), 0 );
>
> No doubt you could do this with a style file too.
>
> Put a GtkImage inside the button and change the graphic to whatever
> you want, whenever you want.

I have made a screenshot of what I am trying to do:

http://picasaweb.google.com/lh/photo/gnQjiPc5wq1J-4yFVHLExA?feat=directlink

Notice that when I use the GtkButton there is still a border around
the image and the button decorations are still drawn.
Any idea of how to completely swap the button graphics with an image?

-Steffen
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux