Re: What am I doing wrong?
- From: Stefan Salewski <mail ssalewski de>
- To: Igor Korot <ikorot01 gmail com>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: What am I doing wrong?
- Date: Sun, 16 Aug 2015 13:42:22 +0200
On Sun, 2015-08-16 at 01:42 -0400, Igor Korot wrote:
However the image is not displayed on the button.
I can't call gtk_window_set_icon_name() as GtkButton is not GtkWindow
and I'm getting a compiler error.
So how do I make a button display my named icon?
https://developer.gnome.org/gtk3/stable/GtkButton.html#GtkButton--always-show-image
gtk_button_set_image ()
Set the image of button to the given widget. The image will be displayed
if the label text is NULL or if “always-show-image” is TRUE. You don’t
have to call gtk_widget_show() on image yourself.
So if you set a label and an image, the image is ignored. If you want
both, try “always-show-image” property.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]