Re: What am I doing wrong?
- Date: Sun, 16 Aug 2015 22:10:41 +0200
- From: Gergely Polonkai <gergely@xxxxxxxxxxx>
- Subject: Re: What am I doing wrong?
as far as I remember, the new interface guidelines discourage using both icons and labels on one control, so I guess this is the easiest, if not the only way.
On 16 Aug 2015 15:01, "Igor Korot" <ikorot01@xxxxxxxxx> wrote:
On Sun, Aug 16, 2015 at 7:42 AM, Stefan Salewski <mail@xxxxxxxxxxxx> wrote:
> 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?
> 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.
Is there a better way to do that?
gtk-list mailing list
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list