Many thanks John, I'll try your suggestion tomorrow.
Thanks also, Tadej. That's pretty much how I created the button at my first
attempt. It created the button OK but I couldn't find a way to change the font
later. :-(
John
___
gtk-app-devel-list m
On 2 January 2011 15:39, John Emmas wrote:
> To be honest, all I'm trying to do is create a button whose label font can be
> changed on demand. I've managed to achieve it by using an empty button with
> a label on top, except that the label doesn't always stay on top!
Ah, OK, yes, there's a mu
Hi.
> I followed that link but it doesn't look as if it would work for a button.
> I'd need to be able to get the button's label object (if there is one) but I
> can't see an obvious way of getting it :-(
How you'll get your hands on GtkLabel object inside button depends on
how your butto
On 2 Jan 2011, at 17:19, Lance Dillon wrote:
>
> I would use gtk_label_set_attributes(),
> http://library.gnome.org/devel/gtk/stable/GtkLabel.html#gtk-label-set-attributes
>
> That would probably do what you want.
>
I followed that link but it doesn't look as if it would work for a button.
- Original Message
> From: John Emmas
> To: gtk-app-devel-list
> Sent: Sun, January 2, 2011 10:42:28 AM
> Subject: Re: Bring a widget to the foreground
>
>
> On 2 Jan 2011, at 15:39, John Emmas wrote:
>
> >
> > I'm probably being incredibly dim but I couldn't find a way to do th
On 2 Jan 2011, at 15:39, John Emmas wrote:
>
> I'm probably being incredibly dim but I couldn't find a way to do this with a
> standard gtk button. I could change the label's text quite easily but not
> its font. Am I missing something very obvious?
>
Sorry, that's ambiguous now that I re-
On 2 Jan 2011, at 14:40, jcup...@gmail.com wrote:
>
> You can just set the alignment on the label to get them to display at
> the top of the button.
>
>> [...]
>
> GTK does not officially support overlapping widgets. However, you can
> sort-of do it by putting groups of widgets into eventboxes
Hi John,
On 2 January 2011 13:17, John Emmas wrote:
> As an example, let's say I wanted a button whose label needed to be at the
> top of the button, rather than in the centre. I use either a separate label
> or a graphical image to achieve this.
You can just set the alignment on the label to
Suppose I designed a custom widget that was made up of two other widgets
layered on top of each other. As an example, let's say I wanted a button whose
label needed to be at the top of the button, rather than in the centre. I use
either a separate label or a graphical image to achieve this.
E