Animation in GtkTreeView
- From: Dubravin Andrey <daa84 inbox ru>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Animation in GtkTreeView
- Date: Thu, 13 Apr 2006 20:08:20 +0400
Hello all,
I try to create animation using GtkCellPixmap in GtkTreeView using next
code:
angle += PIXMAP_ROTATE_STEP;
rotated_pixbuf = pixmap_rotate (original_pixbuf, angle);
gtk_list_store_set (GTK_LIST_STORE (tree_model), &iter,
FILE_LIST_COL_FILE_ICON, rotated_pixbuf,
-1);
this executes in g_timeout_add callback function.
I find that function gtk_list_store_set is very slow.
(cpu = 100% interval = 50 PIXMAP_ROTATE_STEP = 0.1f,
cpu = 50% interval = 100 PIXMAP_ROTATE_STEP = 0.1f,
cpu = 40% interval = 200 PIXMAP_ROTATE_STEP = 0.3f - this look bad)
pixmap_rotate function use cpu for 0%.
Maybe exists GtkCellRenderer that can halp me or another GtkTreeModel
implementation?
Thanks!
and sorry for my bad english.
--
Dubravin Andrey <daa84 inbox ru>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]