[tasks/gnome3: 12/14] Remove gtk_style_lookup_color check



commit 64d8c9a8fefb60f8c3e93e1155c31ea5a06ca2b3
Author: Ross Burton <ross linux intel com>
Date:   Wed Apr 27 19:40:23 2011 +0100

    Remove gtk_style_lookup_color check

 configure.ac             |    2 +-
 libkoto/koto-task-view.c |    7 -------
 2 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9d7a49b..251afa5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,7 +69,7 @@ old_cflags=$CFLAGS
 CFLAGS=$GTK_CFLAGS
 
 # This was introduced in GTK+ 2.10
-AC_CHECK_DECLS([GDK_WINDOW_TYPE_HINT_COMBO, gtk_style_lookup_color],
+AC_CHECK_DECLS([GDK_WINDOW_TYPE_HINT_COMBO],
                [], [], [#include <gtk/gtk.h>])
 
 CFLAGS=$old_cflags
diff --git a/libkoto/koto-task-view.c b/libkoto/koto-task-view.c
index 6057348..7f9e584 100644
--- a/libkoto/koto-task-view.c
+++ b/libkoto/koto-task-view.c
@@ -313,7 +313,6 @@ koto_task_view_style_set (GtkWidget *widget, GtkStyle *previous)
   priv = GET_PRIVATE (widget);
 
   style = gtk_widget_get_style (widget);
-#if HAVE_DECL_GTK_STYLE_LOOKUP_COLOR
   if (!gtk_style_lookup_color (style, "priority-low", &priv->colour_low)) {
     priv->colour_low = style->text[GTK_STATE_INSENSITIVE];
   }
@@ -326,12 +325,6 @@ koto_task_view_style_set (GtkWidget *widget, GtkStyle *previous)
   if (!gtk_style_lookup_color (style, "priority-done", &priv->colour_done)) {
     priv->colour_done = style->text[GTK_STATE_INSENSITIVE];
   }
-#else
-  priv->colour_low = style->text[GTK_STATE_INSENSITIVE];
-  priv->colour_normal = style->text[GTK_STATE_NORMAL];
-  priv->colour_high = style->text[GTK_STATE_NORMAL];
-  priv->colour_done = style->text[GTK_STATE_INSENSITIVE];
-#endif
 
   GTK_WIDGET_CLASS (koto_task_view_parent_class)->style_set (widget, previous);
 }



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