From 152fcf1ce447ba4a48389c84ce88079ef57c71a4 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Tue, 13 Sep 2016 18:14:53 +0200 Subject: gkbd-keyboard-drawing: Don't set allocation from ::size-allocate This isn't needed and in fact causes runtime warnings. --- libgnomekbd/gkbd-keyboard-drawing.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c index 81cab11..f17b204 100644 --- a/libgnomekbd/gkbd-keyboard-drawing.c +++ b/libgnomekbd/gkbd-keyboard-drawing.c @@ -1537,12 +1537,9 @@ size_allocate (GtkWidget * widget, { GkbdKeyboardDrawingRenderContext *context = drawing->renderContext; - if (!context_setup_scaling (context, drawing, - allocation->width, allocation->height, - 50, 50)) - return; - - gtk_widget_set_allocation (GTK_WIDGET (drawing), allocation); + context_setup_scaling (context, drawing, + allocation->width, allocation->height, + 50, 50); } static gint -- cgit v1.2.1