These are mostly changes involving accessor methods that could be made to the
existing mozcontainer.c (and used in both GTK+ 2 and 3 builds) with the help
of gtk2compat.h.
There are only 2 or 3 statements that need to be different, and these could be
handled through preprocessor conditionals.
It should be fine to use the "allocation" variable here instead of using get_allocation to fetch the value just set. (I don't imagine calling size_allocate on children will change the parent's allocation.)
Comment on attachment 540030
mozcontainer.c patch
These are mostly changes involving accessor methods that could be made to the
existing mozcontainer.c (and used in both GTK+ 2 and 3 builds) with the help
of gtk2compat.h.
There are only 2 or 3 statements that need to be different, and these could be
handled through preprocessor conditionals.
>+ gtk_widget_ set_allocation( widget, allocation); >children; size_allocate (GtkWidget REALIZED (widget)) { move_resize( widget- >window, >allocation. x, >allocation. y, >allocation. width, >allocation. height) ; get_allocation( widget, &tmp_allocation); get_realized( widget) ) { move_resize( gtk_widget_ get_window( widget) , width, height) ;
>
> tmp_list = container-
>@@ -336,10 +339,11 @@ moz_container_
> }
>
>- if (GTK_WIDGET_
>- gdk_window_
>- widget-
>- widget-
>- widget-
>- widget-
>+ gtk_widget_
>+ if (gtk_widget_
>+ gdk_window_
>+ tmp_allocation.x,
>+ tmp_allocation.y,
>+ tmp_allocation.
>+ tmp_allocation.
It should be fine to use the "allocation" variable here instead of using get_allocation to fetch the value just set. (I don't imagine calling size_allocate on children will change the parent's allocation.)