mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 21:50:34 +00:00
GtkListBox: Animate keybindings
This commit is contained in:
parent
d331c949d6
commit
e31056f9b3
@ -17,6 +17,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "gtkadjustmentprivate.h"
|
||||
#include "gtklistbox.h"
|
||||
#include "gtkwidget.h"
|
||||
#include "gtkmarshalers.h"
|
||||
@ -2730,9 +2731,9 @@ gtk_list_box_move_cursor (GtkListBox *box,
|
||||
}
|
||||
end_y = ROW_PRIV (row)->y;
|
||||
if (end_y != start_y && priv->adjustment != NULL)
|
||||
gtk_adjustment_set_value (priv->adjustment,
|
||||
gtk_adjustment_get_value (priv->adjustment) +
|
||||
end_y - start_y);
|
||||
gtk_adjustment_animate_to_value (priv->adjustment,
|
||||
gtk_adjustment_get_value (priv->adjustment) +
|
||||
end_y - start_y);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user