Re: Reflections on Gnome from longtime GUI User..
- From: Russell Nelson <nelson crynwr com>
- To: gnome-gui-list gnome org
- Subject: Re: Reflections on Gnome from longtime GUI User..
- Date: 19 Feb 1998 15:07:19 -0000
Justin Sher writes:
> gpanel- Looks pretty good.
> What's this thing over on the right hand side? Some sort of biff?
> It's a little big.. Maybe you could fit four of those things in neatly on
> the right hand side. They could be in a grid or something. That would be
> cool. BTW, these things need tool tips!
> The sliding animation is totally gratuitous and gets very dull and
> aggravating about the second or third time I see it. At least have it
> turned off by default.
Try this with a horizontal panel (vertical could use the same
algorithm). Looks pretty keen. It accellerates the animation
linearly until the midpoint, then decellerates linearly. Much faster,
but still gives you a good sense of movement.
--- panel.c~ Wed Jan 21 18:45:39 1998
+++ panel.c Thu Feb 19 10:04:02 1998
@@ -83,16 +83,18 @@
move_horiz(int src_x, int dest_x)
{
int x;
+ int mid = (src_x + dest_x) >> 1;
+ int half = abs(src_x - dest_x) >> 1;
if (the_panel->step_size != 0)
if (src_x < dest_x)
- for (x = src_x; x < dest_x; x += the_panel->step_size) {
+ for (x = src_x; x < dest_x; x += ((half - abs(x - mid))>>2) + 1) {
move_window(GTK_WINDOW(the_panel->window), x,
the_panel->window->allocation.y);
/* FIXME: do delay */
}
else
- for (x = src_x; x > dest_x; x -= the_panel->step_size) {
+ for (x = src_x; x > dest_x; x -= ((half - abs(x - mid))>>2) + 1) {
move_window(GTK_WINDOW(the_panel->window), x,
the_panel->window->allocation.y);
/* FIXME: do delay */
--
-russ <nelson@crynwr.com> http://web.crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | Freedom is the primary
521 Pleasant Valley Rd. | +1 315 268 1925 voice | cause of Peace, Love,
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | Truth and Justice.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]