if (pizza->m_is_scrollable)
{
// two windows, both same size
if (pizza->m_is_scrollable)
{
// two windows, both same size
alloc->x + border_x, alloc->y + border_y, w, h);
if (is_resize)
gdk_window_resize(widget->window, w, h);
alloc->x + border_x, alloc->y + border_y, w, h);
if (is_resize)
gdk_window_resize(widget->window, w, h);
GtkAllocation child_alloc;
// note that child positions do not take border into
// account, they need to be relative to widget->window,
GtkAllocation child_alloc;
// note that child positions do not take border into
// account, they need to be relative to widget->window,
gdk_window_get_parent(widget->window),
&attr,
GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP);
gdk_window_get_parent(widget->window),
&attr,
GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP);
- gdk_window_set_user_data(pizza->m_backing_window, widget);
- gdk_window_reparent(widget->window, pizza->m_backing_window, 0, 0);
+ gdk_window_set_user_data(backing_window, widget);
+ gdk_window_reparent(widget->window, backing_window, 0, 0);
// resizing. Setting the backing pixmap to None prevents those
// areas from being briefly painted black.
// resizing. Setting the backing pixmap to None prevents those
// areas from being briefly painted black.
}
else
gdk_window_move_resize(widget->window, x, y, w, h);
}
else
gdk_window_move_resize(widget->window, x, y, w, h);
- gdk_window_set_user_data(pizza->m_backing_window, NULL);
- gdk_window_destroy(pizza->m_backing_window);
- pizza->m_backing_window = NULL;
+ gdk_window_set_user_data(backing_window, NULL);
+ gdk_window_destroy(backing_window);
{
GtkWidget* widget = GTK_WIDGET(g_object_new(type(), NULL));
wxPizza* pizza = WX_PIZZA(widget);
{
GtkWidget* widget = GTK_WIDGET(g_object_new(type(), NULL));
wxPizza* pizza = WX_PIZZA(widget);
const AdjustData* p = static_cast<AdjustData*>(data);
widget->allocation.x += p->dx;
widget->allocation.y += p->dy;
const AdjustData* p = static_cast<AdjustData*>(data);
widget->allocation.x += p->dx;
widget->allocation.y += p->dy;
if (widget->window == p->window)
{
// GtkFrame requires a queue_resize, otherwise parts of
if (widget->window == p->window)
{
// GtkFrame requires a queue_resize, otherwise parts of