diff options
Diffstat (limited to 'src/emacsgtkfixed.c')
-rw-r--r-- | src/emacsgtkfixed.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c index 0eacd2eaa2d..e7d1690605c 100644 --- a/src/emacsgtkfixed.c +++ b/src/emacsgtkfixed.c @@ -56,11 +56,10 @@ void aloc_callback(GtkWidget* child, GtkWidget* fixed){ if(xv){ printf(" allocation modification for xw\n"); gtk_widget_get_allocation(child, &child_allocation); - child_allocation.width = xv->clipx; - child_allocation.height = xv->clipy - xv->cliptop; + child_allocation.width = xv->clip_right; + child_allocation.height = xv->clip_bottom - xv->clip_top; gtk_widget_size_allocate (child, &child_allocation); //TODO find a way to remove this feeble workaround - //gtk_adjustment_set_value (gtk_viewport_get_vadjustment(GTK_VIEWPORT(xv->widgetwindow)), 1.0*xv->cliptop); } } |