summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2016-09-13 18:14:53 +0200
committerRui Matos <tiagomatos@gmail.com>2016-09-14 21:23:26 +0200
commit152fcf1ce447ba4a48389c84ce88079ef57c71a4 (patch)
treeaa357e73a07ec9575c3c86c3fb4eed1c589d3087
parent194aee00b3323ca0f8219ab4d60498189c90ae7e (diff)
downloadlibgnomekbd-152fcf1ce447ba4a48389c84ce88079ef57c71a4.tar.gz
gkbd-keyboard-drawing: Don't set allocation from ::size-allocate
This isn't needed and in fact causes runtime warnings.
-rw-r--r--libgnomekbd/gkbd-keyboard-drawing.c9
1 files 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