diff options
Diffstat (limited to 'src/pop-window-stack.c')
-rw-r--r-- | src/pop-window-stack.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/pop-window-stack.c b/src/pop-window-stack.c index 578f96e..65d85bd 100644 --- a/src/pop-window-stack.c +++ b/src/pop-window-stack.c @@ -75,7 +75,7 @@ static void pop_window_stack_get_property (GObject *object, static void pop_window_stack_set_screen (PopWindowStack *stack, GdkScreen *screen); -static void pop_window_stack_set_readiness (PopWindowStack *stack, +static void pop_window_stack_set_ready (PopWindowStack *stack, gboolean is_ready); static void pop_window_stack_clear_window_list (PopWindowStack *stack); @@ -216,7 +216,7 @@ pop_window_stack_set_property (GObject *object, pop_window_stack_set_screen (stack, g_value_get_pointer (value)); break; case PROP_IS_READY: - pop_window_stack_set_readiness (stack, g_value_get_boolean (value)); + pop_window_stack_set_ready (stack, g_value_get_boolean (value)); break; default: @@ -336,11 +336,6 @@ pop_window_stack_foreach (PopWindowStack *stack, g_return_if_fail (POP_IS_WINDOW_STACK (stack)); g_return_if_fail (func != NULL); g_return_if_fail (pop_window_stack_is_ready (stack)); -#if 0 - while (!pop_window_stack_is_ready (stack)) - while (g_main_context_pending (NULL)) - g_main_context_iteration (NULL, TRUE); -#endif closure.stack = stack; closure.func = func; @@ -398,7 +393,7 @@ static void pop_window_stack_clear_window_list (PopWindowStack *stack) { - pop_window_stack_set_readiness (stack, FALSE); + pop_window_stack_set_ready (stack, FALSE); if (g_queue_is_empty (stack->priv->windows)) return; @@ -513,7 +508,7 @@ on_query_tree_reply (GdkDisplay *display, g_slice_free (PopQueryTreeState, state); g_assert (POP_IS_WINDOW_STACK (state->data)); - pop_window_stack_set_readiness (POP_WINDOW_STACK (state->data), TRUE); + pop_window_stack_set_ready (POP_WINDOW_STACK (state->data), TRUE); } static void @@ -554,8 +549,8 @@ pop_window_stack_set_screen (PopWindowStack *stack, } static void -pop_window_stack_set_readiness (PopWindowStack *stack, - gboolean is_ready) +pop_window_stack_set_ready (PopWindowStack *stack, + gboolean is_ready) { is_ready = (is_ready == TRUE); @@ -605,4 +600,5 @@ main (int argc, char **argv) return exit_code; } + #endif /* POP_WINDOW_STACK_ENABLE_TEST */ |