Fix selection bugs (selection was not being modified).

-Marc
This commit is contained in:
rhlabs 1998-03-06 18:19:06 +00:00
parent 3033d6b47a
commit 2095c552f8
8 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -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);