Re: GtkCheckMenuItem needs double click?



Thanks for confirming this is the way it actually behaves!

I failed to put a check box on a tool bar but I could create a toggle
button and I can also add menus to the tool bar so that does indeed do
what I want :^)

There are quite few other peculiarities, e.g. text beside the icons
doesn't display, but below them does.
Could it be version incompatibility in the tools I'm using?

Glade 3.6.1
GTK+ 2.24.14


On Sun, Dec 9, 2012 at 1:20 AM, David NeÄas <yeti physics muni cz> wrote:
On Sun, Dec 09, 2012 at 12:57:43AM +1300, Perdie Perduta wrote:
Using glade with GtkBuilder to create my application GUI. I'm
developing & testing on Windows 7 using Microsoft C++.
Trying to add a "record" button to my menu bar. Note: Ideally I would
have liked a nice red record button that lights up while my
application is recording, however just to get it working I put in
GtkCheckMenuItem.

It is all working but inexplicably I have to click my GtkCheckMenuItem
*twice* to for each toggle. Is this a known common mistake?
Any advice or reference to previous thread on the subject would be appreciated.

Adding *buttons* to *menubars* is certainly very odd.  It may be that to
activate the button the menu item must get focus first, hence the two
clicks.

My advice is to use a toolbar instead.  It seems to fit what you are
trying to do better and you can have tool items that act like plain
buttons, toggles, radio button, that pop up menus, etc.

Yeti




-- 
~~~ PEr aRDUa ad asTrA ~~~
(Through adversity to the stars)



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