2006/1/16, Lassi Syrjälä <[EMAIL PROTECTED]>:

Luca Donaggio kirjoitti 16.1.2006 kello 17.09:

> It seems that the following doesn't work:
>
> [code]
>
> g_signal_connect (G_OBJECT (main), "show",
>                     G_CALLBACK (on_main_create),
>                     NULL);
>
>
> [/end code]

Hi,

I'd assume it works, but only if you connect the handler before
showing the widget. "Show" is anyway not the most useful of signals,
since it's synchronously and only ever emitted when you
gtk_widget_show (main). In this case, it probably gains you nothing,
since you could as well write:

gtk_widget_show (main);
on_main_create (main, NULL);

Instead, you could try something like:

g_signal_connect_after (main, "map", G_CALLBACK (on_main_create), NULL);

If that does not do the trick, adding a low priority idle function
with a return value of FALSE might help.

BR,
Lassi



Thanks a lot Lassi, g_signal_connect_after() works smoothly!

Luca Donaggio
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers

Reply via email to