GtkCheckMenuItem needs double click?

2012-12-08 Thread Perdie Perduta
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.

Thanks in advance,
Perdie
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GtkCheckMenuItem needs double click?

2012-12-08 Thread David Nečas
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

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GtkCheckMenuItem needs double click?

2012-12-08 Thread Perdie Perduta
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 y...@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)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list