Re: Trouble with button mask

2012-05-13 Thread James Steward
Stupid question below. Please ignore. James. On 14/05/12 15:47, James Steward wrote: Hi, I've been trying to get a canvas select item event to fire for a gtk_plot_canvas. Upon left clicking inside a plot canvas, I can see that gtk_plot_canvas_button_press(...) gets called, and the followi

Trouble with button mask

2012-05-13 Thread James Steward
Hi, I've been trying to get a canvas select item event to fire for a gtk_plot_canvas. Upon left clicking inside a plot canvas, I can see that gtk_plot_canvas_button_press(...) gets called, and the following lines near the beginning of that function (in the gtkextra lib) cause the function t

Re: Not understanding the g_type_from_name() behaviour

2012-05-13 Thread Nicola Fontana
Il giorno Sun, 13 May 2012 10:37:16 +0200 Marc Balmer ha scritto: > I have a (hopefully) basic question. g_type_from_name() does not behave > as I would it expect to behave: > > When I call it with e.g. "GtkButton", I get GTK_TYPE_BUTTON. But when I > call it with "GtkFrame", it returns 0 (no

Not understanding the g_type_from_name() behaviour

2012-05-13 Thread Marc Balmer
I have a (hopefully) basic question. g_type_from_name() does not behave as I would it expect to behave: When I call it with e.g. "GtkButton", I get GTK_TYPE_BUTTON. But when I call it with "GtkFrame", it returns 0 (no such type found). To add to my confusion, when I call "printf("%s\n", g_type_