[libgnomekbd] call gtk_widget_set_allocation from size_allocate



commit b17364bbac14cf8fdb90d10346571e700489b95c
Author: Sergey V. Udaltsov <svu gnome org>
Date:   Fri Jan 28 01:37:35 2011 +0000

    call gtk_widget_set_allocation from size_allocate
    
    And there is no need to invalidate - it will be done anyway

 libgnomekbd/gkbd-keyboard-drawing.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnomekbd/gkbd-keyboard-drawing.c b/libgnomekbd/gkbd-keyboard-drawing.c
index 8233b89..2845bcd 100644
--- a/libgnomekbd/gkbd-keyboard-drawing.c
+++ b/libgnomekbd/gkbd-keyboard-drawing.c
@@ -1496,7 +1496,7 @@ size_allocate (GtkWidget * widget,
 				    50, 50))
 		return;
 
-	gtk_widget_queue_draw (GTK_WIDGET (drawing));
+	gtk_widget_set_allocation (GTK_WIDGET (drawing), allocation);
 }
 
 static gint



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