Re: ImageButton
- From: Steffen Toksvig <steffen toksvig dk>
- To: gtk-list gnome org
- Subject: Re: ImageButton
- Date: Tue, 3 Feb 2009 09:32:59 +0100
> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]