View Full Version : (GTK C)how can i fill an entire button with an image?

March 13th, 2008, 08:52 PM
i have this button:

gtk_button_set_image(GTK_BUTTON(examplebutton2),im age);

how can i fill an entire button with an image?(gtk c )


March 14th, 2008, 12:32 AM
I'm assuming you want to have a fancy icon instead of a plain button. In those situations , I've usually used an image component as a button. I really don't know GTK+ , but I'm sure there is such widget in that framework. All components have OnClick event / slot . Also, I always use slots like OnHover in order to highlight an image a little bit, when user hovers the mouse over a button