Re: Re:Help replacing GtkDrawingArea with GtkLayout
- From: Stefan Salewski <mail ssalewski de>
- To: richard rshann plus com
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Re:Help replacing GtkDrawingArea with GtkLayout
- Date: Mon, 03 Mar 2014 16:42:23 +0100
On Mon, 2014-03-03 at 15:17 +0000, 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) |
GDK_STRUCTURE_MASK);
g_print("After adding GDK_STRUCTURE_MASK mask 0x%x\n",
gdk_window_get_events (win));
gtk_widget_add_events (layout, GDK_ALL_EVENTS_MASK);
Just a stupid guess, sorry:
May it be necessary to set event mask BEFORE displaying the window with
gtk_widget_show_all (window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]