[maemo-developers] [maemo-developers] A set of development questions...
From: Tomi Ollila tomi.ollila at guru.guru-group.fiDate: Wed Jan 25 00:46:39 EET 2006
- Previous message: [maemo-developers] A set of development questions...
- Next message: [maemo-developers] A set of development questions...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Tomi Ollila (tomi.ollila at guru.guru-group.fi) wrote: >> 3 Is there a compiler define that can be used in code to conditionally >> compile code when targeting for 770 (and some other code when not for 770). >> Currently I use the following kludgy hack: >> >> test -f /etc/init.d/maemo-launcher && XD=-DM4EM0 || XD= >> >> and then use $XD in gcc command line. > > I use my configure script to check for the presence of the hildon > libraries. Put this in your configure.ac: > > PKG_CHECK_MODULES(HILDON, hildon-lgpl, > [ AC_DEFINE(HILDON) > AC_SUBST(HILDON_LIBS) > AC_SUBST(HILDON_CFLAGS)], > AC_MSG_RESULT([no])) > > Then you can #ifdef HILDON your C-code. Thanks. Let's see where this leads me... autoconf is something I don't want to touch my hands too deep (but digging info out of there is good (and fun) way to do. > > Hope this helps, > Simon --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- Lassi Syrjälä <lassis at cc.jyu.fi> writes: > Tomi Ollila kirjoitti 24.1.2006 kello 23.10: Juu kirjoitin :D > >> 1 I've set "Capitalize" on when typing on virtual keyboard. Is >> there a way in GtkEntry to to hint the keyboard to not to >> capitalize >> the first word? BTW it is interesting that also the numeric keypad >> is capitalized ;/ > > Hi, > > One of these should do: > > entry = g_object_new (GTK_TYPE_ENTRY, "autocap", FALSE, NULL); > g_object_set (entry, "autocap", FALSE, NULL); I'd quess both.. now I just have dilemma of which one to use ;) Too tired to test now; maybe tomorrow (if family life let's me) I have post 740(*) revision which has that feature... Thanks > > Regards, > Lassi Tomi (*) http://www.iki.fi/too/sw/revsh ... BTW: One of the good things in this list is that reply-to is not forwarded to the list (How long it takes until discussion of that issue rises... >;)
- Previous message: [maemo-developers] A set of development questions...
- Next message: [maemo-developers] A set of development questions...
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]