Re: GtkBox vs GtkGrid

2013-06-03 Thread jcupitt
Hi Tom,

On 2 June 2013 13:12, Thomas A. Moulton t...@moulton.us wrote:
 Am I missing something?

 If I use GtkBox it seems that once I add a child I can't get access to it's
 address any more (GtkWidget *)

 So if I create a box with some things in it in glade I really can't do much
 with them.
 (Other than giving them specific names and using the builder object to look
 them up)

GtkBox is a subclass of GtkContainer, so you can use all those methods
to look up children or loop over them:

https://developer.gnome.org/gtk3/stable/GtkContainer.html

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


Re: Ctrl key, event state value, XIM vs IBus

2013-06-03 Thread Luc Pionchon
On 2 June 2013 11:57, Luc Pionchon pionchon@gmail.com wrote:
 Hi,

 I have a program that connects to the key pressed event. I am getting
 different event-state value for Ctrl, depending on the input method.
 - XIM  gives 4
 - IBus gives 33554436

 is this how it is meant to be? How should I process it?

 GDK_CONTROL_MASK catches only the XIM value


 (Same for Alt)

answer at [1]. Sortly: use bit-wise operations
[1] https://mail.gnome.org/archives/gtk-devel-list/2013-June/msg1.html
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list