convert gtktable to gtkgrid

2014-09-23 Thread Andrea Zagli

i have many glade files made for gtk2 with gtktable

in gtk3 gtktable is deprecated in favour of gtkgrid

is there an easy way to convert gtktable to gtkgrid?

thanks in advance
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: convert gtktable to gtkgrid

2014-09-23 Thread Gergely Polonkai
Hello,

you have to change the GtkTable object class to a GtkGrid (obviously).
Also, (x|y)-options and (x|y)-padding are not present in the GtkGrid,
so you have to remove those packing definitions (child properties).

If you have multiple GtkTables with lots of children, I don’t think
there is an “easy way”, as you have to process each child of a
packing tag within each child tag that has an object child with
its type attribute set to GtkTable.

Best,
Gergely

On 23 September 2014 11:19, Andrea Zagli aza...@libero.it wrote:
 i have many glade files made for gtk2 with gtktable

 in gtk3 gtktable is deprecated in favour of gtkgrid

 is there an easy way to convert gtktable to gtkgrid?

 thanks in advance
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list