[Glade-users] image object inside more then one widget


i create an image object but i can't insert it in more then one
widget: when i insert it in the second one, it is removed from the first

it's a bug or not?

No, this is limitation of GTK+, where each widget can have only one
parent thus cannot be placed into multiple container widgets.

If you want to display the same image in two locations, you'll have to
create two GtkImages that will either load the same from disk twice or
display the same GdkPixbuf that you'll manually load from disk (this
cannot be done from Glade3).


Tadej Borov?ak
tadeboro at gmail.com
tadej.borovsak at gmail.com

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