[libslab] Use gtk_widget_set_can_focus() instead of GTK_WIDGET_SET_FLAGS()



commit cdb3d4baebb5d30b32abee0140595817fb847dbb
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Jun 28 14:59:33 2010 +0200

    Use gtk_widget_set_can_focus() instead of GTK_WIDGET_SET_FLAGS()

 libslab/search-bar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libslab/search-bar.c b/libslab/search-bar.c
index 31e54ad..750ace3 100644
--- a/libslab/search-bar.c
+++ b/libslab/search-bar.c
@@ -87,7 +87,7 @@ nld_search_bar_init (NldSearchBar * search_bar)
 	GtkWidget *alignment;
 	GtkWidget *entry;
 
-	GTK_WIDGET_SET_FLAGS (search_bar, GTK_CAN_FOCUS);
+	gtk_widget_set_can_focus (GTK_WIDGET (search_bar), TRUE);
 
 	priv->hbox = gtk_hbox_new (FALSE, 3);
 	gtk_box_pack_start (GTK_BOX (search_bar), priv->hbox, TRUE, FALSE, 0);



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