Splitting windows vertically

2010-04-24 Thread Charles Clément
Hello,

I have an application, an input method, that doesn't need all the screen
estate because it is not a virtual keyboard. By default in maemo, if I
set a size for the window, it will show my application window in a
horizontal layout, with the normal application above it and my window
below.

I would like to know if there is a way to run the two windows
side-by-side, one being at the left of the screen and the other one
taking the space on the right.

Thanks,

-- 
Charles Clément

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: python app at portrait mode all the time

2010-04-24 Thread Faheem Pervez
The part you want is in the orientation_changed function.

Try:

hildon.hildon_gtk_window_set_portrait_flags(window,
hildon.PORTRAIT_MODE_SUPPORT | hildon.PORTRAIT_MODE_REQUEST)

On 4/24/10, pelt...@gmail.com  wrote:
> Hi, is there a single or two rows way to define a python app to stay at
> portrait mode all the time?
>
> Tried to look through autorotation stuff from portrait.py[1]  but didn't
> manage to find anything that I could use straight on.
> http://talk.maemo.org/showthread.php?t=31940
> [1]http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gtkui/frmntl/portrait.py
>
> I am trying to make a simple portrait sms python app as requested at tmo.
>
> So if someone knows how to do that as simple as possible, I'd appreciate
> some tips.
>
> Ossipena / TimoP
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


python app at portrait mode all the time

2010-04-24 Thread peltsip
Hi, is there a single or two rows way to define a python app to stay at 
portrait mode all the time?

Tried to look through autorotation stuff from portrait.py[1]  but didn't manage 
to find anything that I could use straight on.
http://talk.maemo.org/showthread.php?t=31940
[1]http://repo.or.cz/w/gpodder.git?a=blob;f=src/gpodder/gtkui/frmntl/portrait.py

I am trying to make a simple portrait sms python app as requested at tmo.

So if someone knows how to do that as simple as possible, I'd appreciate some 
tips.

Ossipena / TimoP
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: getting operator name and SIM card status on N900

2010-04-24 Thread William Maddler
On 04/23/2010 10:35 PM, William Maddler wrote:
> Hello all,
> I've tried googling around but got no luck.
> I'd need to get current operator name a SIM card status (registered/not
> registered).
> 
> Any clue or starting point? C or Python would be fine.

Answering to myself: http://wiki.maemo.org/Phone_control

Bye
William

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: getting operator name and SIM card status on N900

2010-04-24 Thread William Maddler
On 04/24/2010 02:18 AM, Cláudio Sampaio wrote:
> On Fri, Apr 23, 2010 at 5:35 PM, William Maddler  > wrote:
> 
> Hello all,
> I've tried googling around but got no luck.
> I'd need to get current operator name a SIM card status (registered/not
> registered).
> 
> Any clue or starting point? C or Python would be fine.
> 
> 
> You can get them via dbus. First you get the operator code and country
> code, then you get the proper string. In shell script:
> 
> #!/bin/sh
> opcountry=$(dbus-send --system --print-reply=literal
> --dest=com.nokia.phone.net 
> /com/nokia/phone/net \
> Phone.Net.get_registration_status | tr '\n' ' ' | awk '{print $8,$10}')
> opcode=$(echo $opcountry | cut -f1 -d' ')
> countrycode=$(echo $opcountry | cut -f2 -d' ')
> dbus-send --system --print-reply --dest=com.nokia.phone.net
>  /com/nokia/phone/net \
> Phone.Net.get_operator_name byte:0 uint32:$opcode uint32:$countrycode |
> grep string \
> | awk '{print $2}' | tr -d \"



Great!!! That's exactly what I needed!

Thank you very much
William

> 
> -- 
> Cláudio "Patola" Sampaio
> IRC: ptl  - Yahoo: patolaaa
> Campinas, SP - Brazil.


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Is it possible to use SCHED_FIFO policy on N900?

2010-04-24 Thread tarantism
_POSIX_PRIORITY_SCHEDULING is defined but attempting to create a pthread
with SCHED_FIFO returns an error. Calling pthread_setschedparam with
policy of SCHED_FIFO doesn't complain but checking with
pthread_getschedparam shows a policy of SCHED_OTHER.

Is it possible to set a policy of SCHED_FIFO (or SCHED_RR) or am I
wasting my time?


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers