Hi,

I tried to remove gtk_widget_show(), but banner still automatically
disappeared. Actually I am developing something for maemo 4.0 SDK, so can I
still use hildon_gtk_window_set_progress_indicator()?

regards
Cheng

On Fri, May 8, 2009 at 12:09 PM, Claudio Saavedra <csaave...@igalia.com>wrote:

> On Fri, 2009-05-08 at 11:34 +0100, Luo Cheng wrote:
>
> > ====code snippet====
> > static gboolean on_banner_idle(GtkWidget *banner)
> > {
> >     gtk_widget_destroy(banner);
> >      return FALSE;
> > }
> >
> >
> > static void create_progress_banner(AppUIData *main)
> > {
> > GtkWidget *banner;
> >
> > banner = hildon_banner_show_progress(GTK_WIDGET(main->data->window),
> > NULL, "Searching...");
> >
> > hildon_banner_set_fraction(HILDON_BANNER(banner), 0.2); /*TODO, need
> > update func*/
> >
> > gtk_widget_show(GTK_WIDGET(banner));
>
> You don't need to call gtk_widget_show() on the banner,
> hildon_banner_show_progress() will show it for you.
>
> In any case, for Fremantle it's discouraged to use progress banners.
> Prefer hildon_gtk_window_set_progress_indicator() if possible.
>
> Claudio
>
>
>
_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to