[libslab] Updates a couple deprecated macros



commit 2bf2099842351e1a9d5fd357b1c702e316f2f609
Author: Stephen Shaw <sshaw decriptor com>
Date:   Thu Jun 2 12:51:35 2011 -0600

    Updates a couple deprecated macros
    
    Closes: bgo#651300

 libslab/tile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libslab/tile.c b/libslab/tile.c
index 44fdd0f..602288d 100644
--- a/libslab/tile.c
+++ b/libslab/tile.c
@@ -353,7 +353,7 @@ tile_expose (GtkWidget * widget, GdkEventExpose * event)
 
 	has_focus = gtk_widget_has_focus (widget);
 	if (has_focus)
-		GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS);
+		gtk_widget_set_can_focus (widget, FALSE);
 
         if (TILE (widget)->entered == FALSE)
                 gtk_widget_set_state (widget, GTK_STATE_NORMAL);
@@ -361,7 +361,7 @@ tile_expose (GtkWidget * widget, GdkEventExpose * event)
 	retval = (*GTK_WIDGET_CLASS (tile_parent_class)->expose_event) (widget, event);
 
 	if (has_focus)
-		GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS);
+		gtk_widget_set_can_focus (widget, TRUE);
 
 	return retval;
 }



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