]> Pileus Git - ~andy/gtk/commitdiff
Use GTK_STATE_INSENSITIVE for the foreground of cells for CLists in the
authorOwen Taylor <otaylor@redhat.com>
Thu, 3 Dec 1998 21:41:14 +0000 (21:41 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 3 Dec 1998 21:41:14 +0000 (21:41 +0000)
Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
for the foreground of cells for CLists in the insensitive
state, instead of GTK_STATE_PRELIGHT.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkclist.c

index f3097e17a1108a5e644c924de6bfb5f9e5599004..d3ecbd46f5fe4becfb4a3e1680b7670d3389eecd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
+       for the foreground of cells for CLists in the insensitive
+       state, instead of GTK_STATE_PRELIGHT.
+
 Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: moved checks upon focus setting from
index f3097e17a1108a5e644c924de6bfb5f9e5599004..d3ecbd46f5fe4becfb4a3e1680b7670d3389eecd 100644 (file)
@@ -1,3 +1,9 @@
+Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
+       for the foreground of cells for CLists in the insensitive
+       state, instead of GTK_STATE_PRELIGHT.
+
 Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: moved checks upon focus setting from
index f3097e17a1108a5e644c924de6bfb5f9e5599004..d3ecbd46f5fe4becfb4a3e1680b7670d3389eecd 100644 (file)
@@ -1,3 +1,9 @@
+Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
+       for the foreground of cells for CLists in the insensitive
+       state, instead of GTK_STATE_PRELIGHT.
+
 Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: moved checks upon focus setting from
index f3097e17a1108a5e644c924de6bfb5f9e5599004..d3ecbd46f5fe4becfb4a3e1680b7670d3389eecd 100644 (file)
@@ -1,3 +1,9 @@
+Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
+       for the foreground of cells for CLists in the insensitive
+       state, instead of GTK_STATE_PRELIGHT.
+
 Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: moved checks upon focus setting from
index f3097e17a1108a5e644c924de6bfb5f9e5599004..d3ecbd46f5fe4becfb4a3e1680b7670d3389eecd 100644 (file)
@@ -1,3 +1,9 @@
+Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
+       for the foreground of cells for CLists in the insensitive
+       state, instead of GTK_STATE_PRELIGHT.
+
 Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: moved checks upon focus setting from
index f3097e17a1108a5e644c924de6bfb5f9e5599004..d3ecbd46f5fe4becfb4a3e1680b7670d3389eecd 100644 (file)
@@ -1,3 +1,9 @@
+Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
+       for the foreground of cells for CLists in the insensitive
+       state, instead of GTK_STATE_PRELIGHT.
+
 Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: moved checks upon focus setting from
index f3097e17a1108a5e644c924de6bfb5f9e5599004..d3ecbd46f5fe4becfb4a3e1680b7670d3389eecd 100644 (file)
@@ -1,3 +1,9 @@
+Thu Dec  3 16:37:42 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (get_cell_style): Use GTK_STATE_INSENSITIVE
+       for the foreground of cells for CLists in the insensitive
+       state, instead of GTK_STATE_PRELIGHT.
+
 Thu Dec  3 06:20:59 1998  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: moved checks upon focus setting from
index 4cb18d030c9ac2eb57a256155500de23e28ce2f3..08dabda04d35dab8e77fefce95264e46386b6c42 100644 (file)
@@ -5401,12 +5401,20 @@ get_cell_style (GtkCList     *clist,
                GdkGC       **fg_gc,
                GdkGC       **bg_gc)
 {
+  gint fg_state;
+
+  if ((state == GTK_STATE_PRELIGHT) &&
+      (GTK_WIDGET (clist)->state == GTK_STATE_INSENSITIVE))
+    fg_state = GTK_STATE_INSENSITIVE;
+  else
+    fg_state = state;
+
   if (clist_row->cell[column].style)
     {
       if (style)
        *style = clist_row->cell[column].style;
       if (fg_gc)
-       *fg_gc = clist_row->cell[column].style->fg_gc[state];
+       *fg_gc = clist_row->cell[column].style->fg_gc[fg_state];
       if (bg_gc)
        *bg_gc = clist_row->cell[column].style->bg_gc[state];
     }
@@ -5415,7 +5423,7 @@ get_cell_style (GtkCList     *clist,
       if (style)
        *style = clist_row->style;
       if (fg_gc)
-       *fg_gc = clist_row->style->fg_gc[state];
+       *fg_gc = clist_row->style->fg_gc[fg_state];
       if (bg_gc)
        *bg_gc = clist_row->style->bg_gc[state];
     }
@@ -5424,7 +5432,7 @@ get_cell_style (GtkCList     *clist,
       if (style)
        *style = GTK_WIDGET (clist)->style;
       if (fg_gc)
-       *fg_gc = GTK_WIDGET (clist)->style->fg_gc[state];
+       *fg_gc = GTK_WIDGET (clist)->style->fg_gc[fg_state];
       if (bg_gc)
        *bg_gc = GTK_WIDGET (clist)->style->bg_gc[state];