forked from AuroraMiddleware/gtk
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,7 +2731,7 @@ 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_animate_to_value (priv->adjustment,
|
||||
gtk_adjustment_get_value (priv->adjustment) +
|
||||
end_y - start_y);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user