Ticket #2011 (accepted enhancement)
Include python-mokoui in libmokoui2 compilation
|Reported by:||Treviño||Owned by:||tick|
|Blocking:||Estimated Completion (week):|
One of the coolest and useful projects of Om2007.2 imho is the libmokoui2 library and its moko-finger-scroll.
It allows easily to add better finger usability to gtk applications (i.e. tangoGPS) with few lines of code.
The Openmoko repositories includes only the C libraries. What about including also the python-mokoui bindings?
They would be so much appreciated by all the users that are writing pygtk apps for openmoko.
To test some community python apps (i.e pythm media browser), I've tried to compile it with the toolchain, and after some tweaking I got it working well in the Freerunner.
Is this package not built due to the python-gnome dependency? Well, according to what I've seen in my tests, that dependency is not required at all for standard usage. In fact I've compiled my version of python-mokoui without any python-gnome sources (I've disabled it in configure) and the bindings are working well anyway!
So why not adding them? :P
Now I'm also going quite OT, but I'd also add more acceleration to the libmokoui2 base settings. I've changed it to allow to scroll faster and works better imho:
=== modified file 'libmokoui/moko-finger-scroll.c' --- libmokoui/moko-finger-scroll.c 2008-06-30 06:16:56 +0000 +++ libmokoui/moko-finger-scroll.c 2008-09-17 00:36:00 +0000 @@ -253,11 +253,11 @@ priv->ix = priv->x; priv->iy = priv->y; /* Don't allow a click if we're still moving fast, where fast is - * defined as a quarter of our top possible speed. + * defined as 1/10 of our top possible speed. * TODO: Make 'fast' configurable? */ - if ((ABS (priv->vel_x) < (priv->vmax * 0.25)) && - (ABS (priv->vel_y) < (priv->vmax * 0.25))) + if ((ABS (priv->vel_x) < (priv->vmax * 0.10)) && + (ABS (priv->vel_y) < (priv->vmax * 0.10))) priv->child = moko_finger_scroll_get_topmost ( GTK_BIN (priv->align)->child->window, event->x, event->y, &x, &y); @@ -959,7 +959,7 @@ "Maximum scroll velocity", "Maximum distance the child widget should scroll " "per 'frame', in pixels.", - 0, G_MAXDOUBLE, 48, + 0, G_MAXDOUBLE, 96, G_PARAM_READWRITE | G_PARAM_CONSTRUCT)); g_object_class_install_property (
- Status changed from new to assigned
- Owner changed from julian_chu to tick
- Severity changed from blocker to normal
- Priority changed from highest to normal