forked from AuroraMiddleware/gtk
Fix selection bugs (selection was not being modified).
-Marc
This commit is contained in:
parent
3033d6b47a
commit
2095c552f8
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user