Don't draw with GTK_STATE_ACTIVE.
2001-09-18 Alex Larsson <alexl@redhat.com> * gtk/gtkcheckbutton.c: * gtk/gtkradiobutton.c: Don't draw with GTK_STATE_ACTIVE. * gtk/gtkclist.c: * gtk/gtkctree.c: Draw lines between rows with base_gc[GTK_STATE_NORMAL]. * gtk/gtktextdisplay.c: Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and unfocused with base_gc [GTK_STATE_ACTIVE]. * gtk/gtkentry.c: Add select all menu-item. Default cursor color is red. Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and unfocused with base_gc [GTK_STATE_ACTIVE]. * gtk/gtklabel.[ch]: Add keynav + menu to selectable lables. Focused selection is drawn with base_gc [GTK_STATE_SELECTED] and unfocused with base_gc [GTK_STATE_ACTIVE]. * gtk/gtkfilesel.c: Add drag and drop support. * gtk/gtkstyle.c: (This was checked in earlier) New default values for text/base SELECTED and ACTIVE
This commit is contained in:
committed by
Alexander Larsson
parent
07fd245421
commit
1a46d3d534
@ -1705,7 +1705,7 @@ draw_row (GtkCList *clist,
|
||||
|
||||
if (gdk_rectangle_intersect (area, &cell_rectangle, crect))
|
||||
gdk_draw_rectangle (clist->clist_window,
|
||||
widget->style->base_gc[GTK_STATE_ACTIVE], TRUE,
|
||||
widget->style->base_gc[GTK_STATE_NORMAL], TRUE,
|
||||
crect->x, crect->y, crect->width, crect->height);
|
||||
}
|
||||
else
|
||||
@ -1714,7 +1714,7 @@ draw_row (GtkCList *clist,
|
||||
crect = &cell_rectangle;
|
||||
|
||||
gdk_draw_rectangle (clist->clist_window,
|
||||
widget->style->base_gc[GTK_STATE_ACTIVE], TRUE,
|
||||
widget->style->base_gc[GTK_STATE_NORMAL], TRUE,
|
||||
crect->x, crect->y, crect->width, crect->height);
|
||||
}
|
||||
|
||||
@ -1761,7 +1761,7 @@ draw_row (GtkCList *clist,
|
||||
if (!area || gdk_rectangle_intersect (area, &cell_rectangle, crect))
|
||||
{
|
||||
gdk_draw_rectangle (clist->clist_window,
|
||||
widget->style->base_gc[GTK_STATE_ACTIVE], TRUE,
|
||||
widget->style->base_gc[GTK_STATE_NORMAL], TRUE,
|
||||
crect->x, crect->y, crect->width, crect->height);
|
||||
|
||||
/* horizontal black lines */
|
||||
|
||||
Reference in New Issue
Block a user