Commit 2095c552 authored by rhlabs's avatar rhlabs

Fix selection bugs (selection was not being modified).

-Marc
parent 3033d6b4
Fri Mar 6 13:17:58 1998 Marc Ewing <marc@.redhat.com>
* gtk/gtkclist.c (real_select_row, real_unselect_row):
fix selection bugs
Thu Mar 5 20:41:27 1998 Ian Main <imain@gnu.org>
* gtk/gtkfilesel.c: Added
......
Fri Mar 6 13:17:58 1998 Marc Ewing <marc@.redhat.com>
* gtk/gtkclist.c (real_select_row, real_unselect_row):
fix selection bugs
Thu Mar 5 20:41:27 1998 Ian Main <imain@gnu.org>
* gtk/gtkfilesel.c: Added
......
Fri Mar 6 13:17:58 1998 Marc Ewing <marc@.redhat.com>
* gtk/gtkclist.c (real_select_row, real_unselect_row):
fix selection bugs
Thu Mar 5 20:41:27 1998 Ian Main <imain@gnu.org>
* gtk/gtkfilesel.c: Added
......
Fri Mar 6 13:17:58 1998 Marc Ewing <marc@.redhat.com>
* gtk/gtkclist.c (real_select_row, real_unselect_row):
fix selection bugs
Thu Mar 5 20:41:27 1998 Ian Main <imain@gnu.org>
* gtk/gtkfilesel.c: Added
......
Fri Mar 6 13:17:58 1998 Marc Ewing <marc@.redhat.com>
* gtk/gtkclist.c (real_select_row, real_unselect_row):
fix selection bugs
Thu Mar 5 20:41:27 1998 Ian Main <imain@gnu.org>
* gtk/gtkfilesel.c: Added
......
Fri Mar 6 13:17:58 1998 Marc Ewing <marc@.redhat.com>
* gtk/gtkclist.c (real_select_row, real_unselect_row):
fix selection bugs
Thu Mar 5 20:41:27 1998 Ian Main <imain@gnu.org>
* gtk/gtkfilesel.c: Added
......
Fri Mar 6 13:17:58 1998 Marc Ewing <marc@.redhat.com>
* gtk/gtkclist.c (real_select_row, real_unselect_row):
fix selection bugs
Thu Mar 5 20:41:27 1998 Ian Main <imain@gnu.org>
* gtk/gtkfilesel.c: Added
......
......@@ -2948,6 +2948,7 @@ real_select_row (GtkCList * clist,
if (clist_row->state == GTK_STATE_NORMAL)
{
clist_row->state = GTK_STATE_SELECTED;
clist->selection = g_list_append (clist->selection, clist_row);
if (!GTK_CLIST_FROZEN (clist) && gtk_clist_row_is_visible (clist, row))
draw_row (clist, NULL, row, clist_row);
......@@ -2972,6 +2973,7 @@ real_unselect_row (GtkCList * clist,
if (clist_row->state == GTK_STATE_SELECTED)
{
clist_row->state = GTK_STATE_NORMAL;
clist->selection = g_list_remove (clist->selection, clist_row);
if (!GTK_CLIST_FROZEN (clist) && gtk_clist_row_is_visible (clist, row))
draw_row (clist, NULL, row, clist_row);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment