Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Richard Shann
I have constructed the following minimal example, it creates a GtkLayout with one label inside it, sets the GDK_STRUCTURE_MASK on the GdkWindow of the GtkLayout and connects the configure-event signal to a routine that would just exit the main loop. Instead of exiting, the window is created

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Stefan Salewski
On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: I have constructed the following minimal example, Yes indeed, https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-events This function must be called while a widget is unrealized.

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Stefan Salewski
On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: gtk_widget_show_all (window); GdkWindow *win = gtk_widget_get_window(layout); g_print(win is %p initial mask 0x%x\n, win, gdk_window_get_events (win)); gdk_window_set_events (win, gdk_window_get_events (win) |

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Richard Shann
On Mon, 2014-03-03 at 16:49 +0100, Stefan Salewski wrote: On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: I have constructed the following minimal example, Yes indeed, https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-events This function must be called

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Bernhard Schuster
On Mon, Mar 3, 2014 at 5:26 PM, Richard Shann rich...@rshann.plus.com wrote: On Mon, 2014-03-03 at 16:49 +0100, Stefan Salewski wrote: On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: I have constructed the following minimal example, Yes indeed,

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Richard Shann
On Mon, 2014-03-03 at 16:38 +0001, Bernhard Schuster wrote: On Mon, Mar 3, 2014 at 5:26 PM, Richard Shann rich...@rshann.plus.com wrote: On Mon, 2014-03-03 at 16:49 +0100, Stefan Salewski wrote: On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: I have constructed