[Glade-users] Possible regression?

On Wed, 2011-09-07 at 19:20 +0200, L Lopez wrote:
Hi list,

I have an interface with some GtkActions and GtkButtons . The buttons
have the "related-action" property set to corresponding actions but
doesn't use action's appearance, instead, they have a custom child, an
image. Problem goes here: loading the interface causes some
gtk-warnings, the buttons doesn't show the images, instead, they use
the long label from the related action:

 Gtk-WARNING **: Attempting to add a widget with type GtkImage to a
GtkButton, but as a GtkBin subclass a GtkButton can only contain one
widget at a time; it already contains a widget of type GtkLabel

This doesn't happended 2 or 3 months ago, not sure about the version
but currently I'm using glade 3.10.0 and Gtk+  3.0.12

A simple example in python is attached, using C gives the same results.

Thanks, that was very helpful.

Lets call it a Glade bug, Glade needs to be careful to serialize
the "use-action-appearance" property before the "related-action".

If you reorder those properties in your Glade file you will find that
it works.

For now, filed this easy to fix bug so we dont forget:


Glade-users maillist  -  Glade-users at lists.ximian.com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]