[libegg] Ifdef GTK_WIDGET_HAS_FOCUS for compiling with -DGSEAL_ENABLE. See bug 615348.



commit ab6fd20d639bb1883c9404199ff4ee4b4d685e43
Author: Andre Klapper <a9016009 gmx de>
Date:   Sat Apr 10 14:49:52 2010 +0200

    Ifdef GTK_WIDGET_HAS_FOCUS for compiling with -DGSEAL_ENABLE. See bug 615348.

 libegg/dock/egg-dock-item-grip.c              |    4 ++++
 libegg/treeviewutils/egg-cell-renderer-text.c |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/libegg/dock/egg-dock-item-grip.c b/libegg/dock/egg-dock-item-grip.c
index ea8bf4e..5db1535 100644
--- a/libegg/dock/egg-dock-item-grip.c
+++ b/libegg/dock/egg-dock-item-grip.c
@@ -62,7 +62,11 @@ egg_dock_item_grip_expose (GtkWidget      *widget,
                       rect->x, rect->y, rect->width, rect->height, 
                       grip->item->orientation);
 
+#if GTK_CHECK_VERSION(2,18,0)
+    if (gtk_widget_has_focus (widget)) {
+#else
     if (GTK_WIDGET_HAS_FOCUS (widget)) {
+#endif
         gint focus_width;
         gint focus_pad;
         GdkRectangle focus;
diff --git a/libegg/treeviewutils/egg-cell-renderer-text.c b/libegg/treeviewutils/egg-cell-renderer-text.c
index e7afefa..5468cd0 100644
--- a/libegg/treeviewutils/egg-cell-renderer-text.c
+++ b/libegg/treeviewutils/egg-cell-renderer-text.c
@@ -91,7 +91,11 @@ egg_cell_renderer_text_render (GtkCellRenderer    *cell,
 	
 	if ((flags & GTK_CELL_RENDERER_SELECTED) == GTK_CELL_RENDERER_SELECTED)
 	{
+#if GTK_CHECK_VERSION(2,18,0)
+		if (gtk_widget_has_focus (widget))
+#else
 		if (GTK_WIDGET_HAS_FOCUS (widget))
+#endif
 			state = GTK_STATE_SELECTED;
 		else
 			state = GTK_STATE_ACTIVE;



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