Re: [maemo-developers] Best IDE for maemo development?

2006-02-21 Thread Celso Pinto
Hi there,

that's an interesting question :-) I prefer to use vim and devhelp. I tried 
using Anjuta but it's too... basic :-) and Eclipse isn't very good for C 
development (I use it on a daily basis for Java development and currently I 
have to admit that Eclipse is getting really bad for Java as well).

autotools, vim and devhelp proved to be the fastest way to learn the GTK API's 
and to actually do stuff without having a million other "features" getting in 
the way. 

-Original Message-
From: Eloi Crespillo Itchart <[EMAIL PROTECTED]>
To: maemo-developers@maemo.org
Date: Tue, 21 Feb 2006 13:29:27 +0100
Subject: [maemo-developers] Best IDE for maemo development?

Hi,

A little survey about your development preferences:

For the people that develops often on maemo, what IDE/set of tools have you 
found to be essential to this task?

Anjuta? Emacs? Kdevelop? Eclipse? devhelp? ...

It could be interesting to know which tools have you found to be more suitable 
for this task. It could also be interesting to know if you use them to 
develop maemo itself or userspace apps.

And please, keep the flame wars low ^_^.

Best Regards,
-- 

Eloi Crespillo Itchart
ZEN Programari lliure i xarxes SLL
[EMAIL PROTECTED] | [EMAIL PROTECTED]
www.ikuszen.com  | www.grupoikusnet.com
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers



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


Re: [maemo-developers] Sketch like pointer movement detection

2006-01-16 Thread Celso Pinto
Hello,

thanks for your helpful pointers but I have one doubt: if I invoke
gdk_event_get() in my motion event callback, is it positive that all
next events are going to be motion events? 

If those events aren't motion events, I'd be able to skip them but
wouldn't I lose the skipped events?

Furthermore, if I ask for the next event by calling gdk_event_get(),
will my pointer motion callback be invoked later for the returned event?

Thanks once again. 

Regards,
Celso



On Sat, 2006-01-14 at 14:55 +0100, Øyvind Kolås wrote:
> On 1/14/06, Celso Pinto <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> >
> > I'm developing a small app just for kicks and I want to have a drawing
> > area similar to Sketch. I've followed the GTK tutorial, the Scribble
> > example part, on how to detect mouse movement and translate that to a
> > drawing.
> >
> > The thing is that compared to Scribble, Sketch is really slick because
> > Scribble fails a lot of movements,probably because drawing to the screen
> > is expensive, because the pixels only get drawn on screen with big
> > intervals.
> >
> > I was just wondering if it is possible to improve pointer motion by
> > having some other masks besides GDK_POINTER_MOTION_MASK? I've removed
> > the GDK_POINTER_MOTION_MASK_HINT but it hasn't improved the drawing.
> >
> > I want to improve on Scribble, so I'm already thinking about
> > alternatives like queuing all motion events and have a separate thread
> > doing the drawing bits if that is the only way to have slick motion
> > detection.
> 
> The best way of doing such things in my experience is:
> 
> 1: collect all motion events until the queue is empty
> 2: draw strokes/update screeen
> 
> No seperate thread should be needed since the xserver/gdk will have
> their own queues of events. Using event collapsing might not be what
> you want either, but you should strive towards minimizing the amount
> of work needed at each redraw.
> 
> My attempt at drawing doesn't use gtk/gdk, but xevents directly, since
> I also have added the option of using information about the amount of
> pressure.
> 
> The drawing application I am working on
> http://pippin.gimp.org/horizon/ is still not ready for prime time,
> thus it only exist in the work in process portion of the application
> catalog.
> 
> /Øyvind K.
> --
> «The future is already here. It's just not very evenly distributed»
>  -- William Gibson
> http://pippin.gimp.org/http://ffii.org/
> 

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


[maemo-developers] Sketch like pointer movement detection

2006-01-13 Thread Celso Pinto
Hi everyone,

I'm developing a small app just for kicks and I want to have a drawing
area similar to Sketch. I've followed the GTK tutorial, the Scribble
example part, on how to detect mouse movement and translate that to a
drawing.

The thing is that compared to Scribble, Sketch is really slick because
Scribble fails a lot of movements,probably because drawing to the screen
is expensive, because the pixels only get drawn on screen with big
intervals.

I was just wondering if it is possible to improve pointer motion by
having some other masks besides GDK_POINTER_MOTION_MASK? I've removed
the GDK_POINTER_MOTION_MASK_HINT but it hasn't improved the drawing.

I want to improve on Scribble, so I'm already thinking about
alternatives like queuing all motion events and have a separate thread
doing the drawing bits if that is the only way to have slick motion
detection.

Any insight is really appreciated.

Cheers,
Celso


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


Re: [maemo-developers] Application receives SIGKILL if executed through the menu

2006-01-04 Thread Celso Pinto
Hi Kalle,

thanks for your insight. One more question though, in the service file,
the service name should then be com.nokia., right?

In related news, how can I suggest changes to the "new application
howto" as to include this precious information? 

Cheers,
Celso

On Wed, 2006-01-04 at 16:58 +0200, Kalle Vahlman wrote:
> On 1/4/06, Celso Pinto <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> 
> Hi!
> 
> > I installed a small application I'm developing on the 770 and noticed
> > that it crashed a lot so the next thing I did was to install it as well
> > in the (x86) SDK and run it there. I noticed that the application also
> > crashed but only when I run it by using the menu entry.
> [snip]
> 
> Usually this is not a crash actually, but intentional interruption by
> the system (which is why you get SIGKILL). This is due to the launched
> program not providing correct service in the dbus (or indeed a service
> at all), which the system takes as if the program failed to load
> properly (hanged) and kills it off so it won't stay and consume
> resources.
> 
> The X-Osso-Service entry in the .desktop file should match exactly the
> PACKAGE argument you are giving to the osso_initialize() function.
> 
> Note that AFAIK the released SDK version of libosso will
> unconditionally prefix the argument "com.nokia", although this can be
> omitted in the .desktop file (at least if the name doesn't contain a
> dot).
> 
> --
> Kalle Vahlman, [EMAIL PROTECTED]
> Powered by http://movial.fi
> Interesting stuff at http://syslog.movial.fi

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


[maemo-developers] Application receives SIGKILL if executed through the menu

2006-01-04 Thread Celso Pinto
Hi everyone,

I installed a small application I'm developing on the 770 and noticed
that it crashed a lot so the next thing I did was to install it as well
in the (x86) SDK and run it there. I noticed that the application also
crashed but only when I run it by using the menu entry. 

If I run the application from the command line using run-standalone.sh
it doesn't crash. So I installed xterm in the 770 and also ran the
application from the command line and the results are the same: the
application doesn't crash if started on the command line.

Debugging the application in the SDK, the gdb results are:
Program terminated with signal SIGKILL, Killed.
The program no longer exists.

Any ideas about why does this happen?

I think that this may be related to OSSO initialization, so here's how I
initialize the application:

int
main(int argc, char **argv)
{
  AppData appData;
  gtk_init(&argc,&argv);

#ifdef MAEMO
  ossoCtx = osso_initialize(PACKAGE,
PACKAGE_VERSION,
FALSE,
NULL);

  if (ossoCtx == NULL)
return OSSO_ERROR;
#endif

  load_resources();
  create_gui(&appData);
  gtk_main();
  return 0;
}

Any comments are welcome.

Cheers,
Celso


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


[maemo-developers] fakeroot hangs

2006-01-03 Thread Celso Pinto
Hi everyone,

I'm following the Maemo tutorial and I'm trying to build a package but
fakeroot hangs indefinately.

I'm running SDK 1.1rc5 and I was wondering if anyone ran into this
problem as well and if so, how did you get around it.

Cheers,
Celso


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