fixed coding style issues

This commit is contained in:
Sven Neumann 2004-09-09 17:13:58 +00:00
parent 3f099b0660
commit 8a80b8e73e
1 changed files with 12 additions and 10 deletions

View File

@ -290,17 +290,19 @@ gimp_preview_area_expose (GtkWidget *widget,
return FALSE; return FALSE;
} }
static void gimp_preview_area_queue_draw (GimpPreviewArea *area, static void
gimp_preview_area_queue_draw (GimpPreviewArea *area,
gint x, gint x,
gint y, gint y,
gint width, gint width,
gint height) gint height)
{ {
g_return_if_fail (GIMP_IS_PREVIEW_AREA (area)); GtkWidget *widget = GTK_WIDGET (area);
x += (GTK_WIDGET(area)->allocation.width - area->width) / 2; x += (widget->allocation.width - area->width) / 2;
y += (GTK_WIDGET(area)->allocation.height - area->height) / 2; y += (widget->allocation.height - area->height) / 2;
gtk_widget_queue_draw_area (GTK_WIDGET (area), x, y, width, height);
gtk_widget_queue_draw_area (widget, x, y, width, height);
} }
static gint static gint