Re: hildon_color_button custom colors issue

2008-04-18 Thread Aniello Del Sorbo
On Wed, Apr 16, 2008 at 12:40 PM, Aniello Del Sorbo [EMAIL PROTECTED] wrote: Anyway.. the first issue below happened because I was running Xournal from root in an SSH remote shell. Thus, probably, colormaps were wrong. Running it the usual way (from the Menu) fixed a bit things. The

Re: hildon_color_button custom colors issue

2008-04-18 Thread Allen Brown
I think that is still incorrect. You should divide by 256. That is exactly equivalent to shifting the bits to the right by 8. That moves the bits you want into the byte you need. -- Allen Brown http://brown.armoredpenguin.com/~abrown On Wed, Apr 16, 2008 at 12:40 PM, Aniello Del Sorbo [EMAIL

Re: hildon_color_button custom colors issue

2008-04-16 Thread Aniello Del Sorbo
Hi, this may help other people when working with RGBA values. I did indeed solved the problem. Anyway.. the first issue below happened because I was running Xournal from root in an SSH remote shell. Thus, probably, colormaps were wrong. Running it the usual way (from the Menu) fixed a bit

Re: hildon_color_button custom colors issue

2008-04-15 Thread Aniello Del Sorbo
I reply to myself. I was testing the app running it from a remote SSH (root) and not from the user's Menu. It works. Thanks anyway. Aniello On Tue, Apr 15, 2008 at 5:50 PM, Aniello Del Sorbo [EMAIL PROTECTED] wrote: Hi, while porting Xournal to Maemo I decided to give it as much