Re: MenuToolButton bug ?



Frederic Martin wrote:
> Hi.
>
> I'm trying to the get the arrow button insensitive for a MenuToolButton.
> Here is the documentation of Gtk::MenuToolButton::set_menu(Menu& menu) :
>
> " If /menu/ is |0|, the arrow button becomes insensitive."
>
menu is a reference it cannot be 0 there must be an error in the docs
you read
> The problem is that you cannot use 0 as a valid argument.
>
> Moreover the source code of set_menu is as follow :
>
> void MenuToolButton::set_menu(Menu& menu)
> {
>      gtk_menu_tool_button_set_menu(gobj(), (menu).Gtk::Widget::gobj());
> }
>
> which assume that "menu" is a valid Menu object I guess.
>
> So is there any way get the arrow insensitive ?
> ------------------------------------------------------------------------
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>   


-- 
  In my life God comes first.... but Linux is pretty high after that :-D
Grizzly(Francis Smit)
http://www.geekcode.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GM/CS/P/PA d- s+:+> a+>? C++++ UL++++@ P+ L+++ E--- W+++ N+(++) K w--- M-- V-- PS(+) PE(-) Y+(++) PGP++ t+(++) 5 X- R- tv b+++(++++) DI(--) D G e++(+++) h-- r- y-
------END GEEK CODE BLOCK------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]