hide tool bar

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

hide tool bar

Luo Cheng
Hi all,

I am using the following code to create the tool bar but hide it for the view.  But unfortunately the tool bar still shown.  Anyone has any clue?


    hildon_window_add_toolbar ( main_view->data->window , GTK_TOOLBAR ( main_view->upnp_toolbar ));
    gtk_widget_hide(GTK_WIDGET(main_view->upnp_toolbar));


regards
Cheng

_______________________________________________
maemo-developers mailing list
[hidden email]
https://lists.maemo.org/mailman/listinfo/maemo-developers
Reply | Threaded
Open this post in threaded view
|

Re: hide tool bar

Till Harbaum / Lists
Hi,

you don't have another "gtk_widget_show_all()" function call later in
your program, do you?

I once made that trivial mistake ...

Till

Am Dienstag 07 April 2009 schrieb Luo Cheng:

> Hi all,
>
> I am using the following code to create the tool bar but hide it for the
> view.  But unfortunately the tool bar still shown.  Anyone has any clue?
>
>
>     hildon_window_add_toolbar ( main_view->data->window , GTK_TOOLBAR (
> main_view->upnp_toolbar ));
>     gtk_widget_hide(GTK_WIDGET(main_view->upnp_toolbar));
>
>
> regards
> Cheng
>


_______________________________________________
maemo-developers mailing list
[hidden email]
https://lists.maemo.org/mailman/listinfo/maemo-developers
Reply | Threaded
Open this post in threaded view
|

Re: hide tool bar

Luo Cheng
Hah,

Thanks Till, I do have a gtk_wiget_show_all() in main.c, so the problem solved. :)

Regards
Cheng

On Tue, Apr 7, 2009 at 2:15 PM, Till Harbaum / Lists <[hidden email]> wrote:
Hi,

you don't have another "gtk_widget_show_all()" function call later in
your program, do you?

I once made that trivial mistake ...

Till

Am Dienstag 07 April 2009 schrieb Luo Cheng:
> Hi all,
>
> I am using the following code to create the tool bar but hide it for the
> view.  But unfortunately the tool bar still shown.  Anyone has any clue?
>
>
>     hildon_window_add_toolbar ( main_view->data->window , GTK_TOOLBAR (
> main_view->upnp_toolbar ));
>     gtk_widget_hide(GTK_WIDGET(main_view->upnp_toolbar));
>
>
> regards
> Cheng
>




_______________________________________________
maemo-developers mailing list
[hidden email]
https://lists.maemo.org/mailman/listinfo/maemo-developers