GTK win32 - g_main_context_iteration during WM_WINDOWPOSCHANGED
- From: jonathan david <jodagm gmail com>
- To: gtk-app-devel-list gnome org
- Subject: GTK win32 - g_main_context_iteration during WM_WINDOWPOSCHANGED
- Date: Tue, 12 May 2009 10:48:58 +0300
Hello all,
I set a timer that calls gtk_window_move on a popup window(*1). while the
popup window is moving I move the main application window.
This leads to immediate processing of WM_WINDOWPOSCHANGED message, which in
turn calls g_main_context_iteration
during that iteration, additional call to the timer is made which causes
unexpected behavior.
should there be a limitation on functions calls that may result on premature
activation of the main loop (during timeout CBs)?
Am I misusing the timer?
Thanks in advance,
Jonathan
*1 - the popup window is set up as:
GTK_WINDOW(win)->type = GTK_WINDOW_POPUP;
gtk_window_set_decorated(GTK_WINDOW(win), 0);
gtk_window_set_skip_pager_hint(GTK_WINDOW(win), 1);
gtk_window_set_type_hint(GTK_WINDOW(win), GDK_WINDOW_TYPE_HINT_DIALOG);
gtk_window_stick(GTK_WINDOW(win));
gtk_window_set_skip_taskbar_hint(GTK_WINDOW(win), 1);
gtk_window_set_keep_above(GTK_WINDOW(win), 1);
gtk_window_set_accept_focus(GTK_WINDOW(win), 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]