[gnome-shell] Revert "Transition the ShellApp state when ready."
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Revert "Transition the ShellApp state when ready."
- Date: Fri, 12 Nov 2010 17:42:03 +0000 (UTC)
commit ac1b81485186506d87f9a14aa8c0d02f67e85c02
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Fri Nov 12 18:41:54 2010 +0100
Revert "Transition the ShellApp state when ready."
This reverts commit c171ea12df5cea7ba1300c9d0b2c5dfa8bdedcd6.
src/shell-app.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index d685be2..fae61c4 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -739,6 +739,9 @@ _shell_app_add_window (ShellApp *app,
g_object_freeze_notify (G_OBJECT (app));
+ if (app->state != SHELL_APP_STATE_STARTING)
+ shell_app_state_transition (app, SHELL_APP_STATE_RUNNING);
+
if (!app->running_state)
create_running_state (app);
@@ -751,9 +754,6 @@ _shell_app_add_window (ShellApp *app,
if (user_time > app->running_state->last_user_time)
app->running_state->last_user_time = user_time;
- if (app->state != SHELL_APP_STATE_STARTING && app->state != SHELL_APP_STATE_RUNNING)
- shell_app_state_transition (app, SHELL_APP_STATE_RUNNING);
-
g_object_thaw_notify (G_OBJECT (app));
g_signal_emit (app, shell_app_signals[WINDOWS_CHANGED], 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]