[libgnomekbd] gkbd-keyboard-drawing: Don't set allocation from ::size-allocate



commit 152fcf1ce447ba4a48389c84ce88079ef57c71a4
Author: Rui Matos <tiagomatos gmail com>
Date:   Tue Sep 13 18:14:53 2016 +0200

    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 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]