[maemo-developers] [maemo-developers] Home applet questions

From: Johan Bilien jobi at via.ecp.fr
Date: Wed Jan 31 19:48:51 EET 2007
On Wed, 2007-01-31 at 08:52 +0100, Christoph Würstle wrote:
> Hi,
> 
> I wrote a small home applet (showing gpe todos and appointments).
> It works nice, but I have two issues:
> 
> 1. how can I get the right themed border (in standard theme the blue one)

Try something like this:

  frame = gtk_frame_new (NULL);
  gtk_widget_set_name (frame, "osso-speeddial");
  gtk_container_set_border_width (GTK_CONTAINER (frame), 0);

  alignment = gtk_alignment_new (0.5,
                                 0.5,
                                 1.0,
                                 1.0);

  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 15, 15, 15, 15);

  gtk_container_add (GTK_CONTAINER (alignment), yourwidget);

This will put yourwidget in a frame themed like the speeddial applet.

> 
> 2. and a very basic question: what's the simplest way to gt the ui
> updating (new buttons/labes/etc) at hildon_home_applet_lib_foreground in
> a background process (I'm new to c programming)

Sorry I didn't get you, do you want to trigger an update of the UI from
another process? If so you could use DBus for instance.

BR
Johan.



More information about the maemo-developers mailing list