sliding panel



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'd like to create a panel that slides out of the way, little animation
kinda thing and I had something working but gtk really didn't slide it
out of the way it just showing the first and then the last. Now I
understand that due to performance that not every panel change should be
drawn but any idea how I can do this...

what I have is this

An hbox that contains a fixed and then a vbox.. and I want to be able to
shrink the vbox away..

so I put in a loop code that set the size of the vbox smaller until it
got to 1. I was able to see the first state and the state where the vbox
was down to 1 but I didn't see any of the steps in between. I even tried
put a g_usleep in there to see it and I wasn't able to see the box
shrinking.

I had something like this

                                gdk_window_get_geometry(controls_box->window, &x, &y, &width,
&height, NULL);
rect.x = x;
rect.y = y;
rect.width = width;
for (i = height ; i > 0; i--) {
        rect.height = i;
        gtk_widget_set_size_request(controls_box,width,i);      
        gdk_window_invalidate_rect(controls_box->window,&rect,TRUE);
        g_usleep(1000);
}

Thanks,

Kevin


- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkfnzagACgkQ6w2kMH0L1dEwgQCdHigKEknXHYrEXNyXwXgmauTw
4l4AoIPHBIbCiZrXFN6vkMymthDX9pFz
=f16u
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]