[libslab] Fix redraw issue after starting applications



commit c1f8cc4b4d281c7c28b7235cd3669f1aba78b716
Author: Ming Xi Wu <mxwu novell com>
Date:   Tue Mar 30 02:27:46 2010 +0200

    Fix redraw issue after starting applications
    
    https://bugzilla.novell.com/show_bug.cgi?id=537483

 libslab/tile.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libslab/tile.c b/libslab/tile.c
index 870944d..3d7cd16 100644
--- a/libslab/tile.c
+++ b/libslab/tile.c
@@ -321,6 +321,7 @@ tile_clicked (GtkButton * widget)
 
 	gtk_button_released (widget);
 	g_free (tile_event);
+        gtk_button_leave (widget);
 }
 
 static gboolean
@@ -353,6 +354,9 @@ tile_expose (GtkWidget * widget, GdkEventExpose * event)
 	if ((has_focus = GTK_WIDGET_HAS_FOCUS (widget)))
 		GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS);
 
+        if (TILE (widget)->entered == FALSE)
+                gtk_widget_set_state (widget, GTK_STATE_NORMAL);
+
 	retval = (*GTK_WIDGET_CLASS (tile_parent_class)->expose_event) (widget, event);
 
 	if (has_focus)



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