fix to avoid flicker at begin/end of list
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end of list
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
|
||||||
|
of list
|
||||||
|
|
||||||
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
||||||
@ -32,6 +37,7 @@ Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
|
|||||||
it; --libs strips out redundant -L<path>'s properly (there was
|
it; --libs strips out redundant -L<path>'s properly (there was
|
||||||
code in there to do it before, but it didn't work)
|
code in there to do it before, but it didn't work)
|
||||||
|
|
||||||
|
>>>>>>> 1.528
|
||||||
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtknotebook.h:
|
* gtk/gtknotebook.h:
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
|
||||||
|
of list
|
||||||
|
|
||||||
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
||||||
@ -32,6 +37,7 @@ Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
|
|||||||
it; --libs strips out redundant -L<path>'s properly (there was
|
it; --libs strips out redundant -L<path>'s properly (there was
|
||||||
code in there to do it before, but it didn't work)
|
code in there to do it before, but it didn't work)
|
||||||
|
|
||||||
|
>>>>>>> 1.528
|
||||||
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtknotebook.h:
|
* gtk/gtknotebook.h:
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
|
||||||
|
of list
|
||||||
|
|
||||||
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
||||||
@ -32,6 +37,7 @@ Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
|
|||||||
it; --libs strips out redundant -L<path>'s properly (there was
|
it; --libs strips out redundant -L<path>'s properly (there was
|
||||||
code in there to do it before, but it didn't work)
|
code in there to do it before, but it didn't work)
|
||||||
|
|
||||||
|
>>>>>>> 1.528
|
||||||
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtknotebook.h:
|
* gtk/gtknotebook.h:
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
|
||||||
|
of list
|
||||||
|
|
||||||
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
||||||
@ -32,6 +37,7 @@ Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
|
|||||||
it; --libs strips out redundant -L<path>'s properly (there was
|
it; --libs strips out redundant -L<path>'s properly (there was
|
||||||
code in there to do it before, but it didn't work)
|
code in there to do it before, but it didn't work)
|
||||||
|
|
||||||
|
>>>>>>> 1.528
|
||||||
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtknotebook.h:
|
* gtk/gtknotebook.h:
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
|
||||||
|
of list
|
||||||
|
|
||||||
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
||||||
@ -32,6 +37,7 @@ Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
|
|||||||
it; --libs strips out redundant -L<path>'s properly (there was
|
it; --libs strips out redundant -L<path>'s properly (there was
|
||||||
code in there to do it before, but it didn't work)
|
code in there to do it before, but it didn't work)
|
||||||
|
|
||||||
|
>>>>>>> 1.528
|
||||||
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtknotebook.h:
|
* gtk/gtknotebook.h:
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
|
||||||
|
of list
|
||||||
|
|
||||||
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
||||||
@ -32,6 +37,7 @@ Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
|
|||||||
it; --libs strips out redundant -L<path>'s properly (there was
|
it; --libs strips out redundant -L<path>'s properly (there was
|
||||||
code in there to do it before, but it didn't work)
|
code in there to do it before, but it didn't work)
|
||||||
|
|
||||||
|
>>>>>>> 1.528
|
||||||
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtknotebook.h:
|
* gtk/gtknotebook.h:
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
|
* gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
|
||||||
|
of list
|
||||||
|
|
||||||
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
|
||||||
@ -32,6 +37,7 @@ Thu Jul 16 14:16:16 PDT 1998 Manish Singh <yosh@gimp.org>
|
|||||||
it; --libs strips out redundant -L<path>'s properly (there was
|
it; --libs strips out redundant -L<path>'s properly (there was
|
||||||
code in there to do it before, but it didn't work)
|
code in there to do it before, but it didn't work)
|
||||||
|
|
||||||
|
>>>>>>> 1.528
|
||||||
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
* gtk/gtknotebook.h:
|
* gtk/gtknotebook.h:
|
||||||
|
@ -5220,6 +5220,8 @@ scroll_vertical (GtkCList *clist,
|
|||||||
GtkScrollType scroll_type,
|
GtkScrollType scroll_type,
|
||||||
gfloat position)
|
gfloat position)
|
||||||
{
|
{
|
||||||
|
gint old_focus_row;
|
||||||
|
|
||||||
g_return_if_fail (clist != NULL);
|
g_return_if_fail (clist != NULL);
|
||||||
g_return_if_fail (GTK_IS_CLIST (clist));
|
g_return_if_fail (GTK_IS_CLIST (clist));
|
||||||
|
|
||||||
@ -5231,16 +5233,23 @@ scroll_vertical (GtkCList *clist,
|
|||||||
case GTK_SELECTION_EXTENDED:
|
case GTK_SELECTION_EXTENDED:
|
||||||
if (clist->anchor >= 0)
|
if (clist->anchor >= 0)
|
||||||
return;
|
return;
|
||||||
if (!GTK_CLIST_ADD_MODE (clist))
|
|
||||||
gtk_clist_unselect_all (clist);
|
|
||||||
|
|
||||||
case GTK_SELECTION_BROWSE:
|
case GTK_SELECTION_BROWSE:
|
||||||
|
|
||||||
if (clist->selection_mode == GTK_SELECTION_BROWSE)
|
old_focus_row = clist->focus_row;
|
||||||
unselect_row (clist,clist->focus_row, -1, NULL);
|
|
||||||
|
|
||||||
move_focus_row (clist, scroll_type, position);
|
move_focus_row (clist, scroll_type, position);
|
||||||
|
|
||||||
|
if (old_focus_row != clist->focus_row)
|
||||||
|
{
|
||||||
|
if (clist->selection_mode == GTK_SELECTION_BROWSE)
|
||||||
|
unselect_row (clist,old_focus_row, -1, NULL);
|
||||||
|
else if (!GTK_CLIST_ADD_MODE (clist))
|
||||||
|
{
|
||||||
|
gtk_clist_unselect_all (clist);
|
||||||
|
clist->undo_anchor = old_focus_row;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (clist->selection_mode == GTK_SELECTION_EXTENDED &&
|
if (clist->selection_mode == GTK_SELECTION_EXTENDED &&
|
||||||
GTK_CLIST_ADD_MODE (clist))
|
GTK_CLIST_ADD_MODE (clist))
|
||||||
return;
|
return;
|
||||||
@ -5248,7 +5257,8 @@ scroll_vertical (GtkCList *clist,
|
|||||||
switch (gtk_clist_row_is_visible (clist, clist->focus_row))
|
switch (gtk_clist_row_is_visible (clist, clist->focus_row))
|
||||||
{
|
{
|
||||||
case GTK_VISIBILITY_NONE:
|
case GTK_VISIBILITY_NONE:
|
||||||
select_row (clist, clist->focus_row, -1, NULL);
|
if (old_focus_row != clist->focus_row)
|
||||||
|
select_row (clist, clist->focus_row, -1, NULL);
|
||||||
switch (scroll_type)
|
switch (scroll_type)
|
||||||
{
|
{
|
||||||
case GTK_SCROLL_STEP_BACKWARD:
|
case GTK_SCROLL_STEP_BACKWARD:
|
||||||
@ -5286,7 +5296,8 @@ scroll_vertical (GtkCList *clist,
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
select_row (clist, clist->focus_row, -1, NULL);
|
if (old_focus_row != clist->focus_row)
|
||||||
|
select_row (clist, clist->focus_row, -1, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user