[ShellApp] Signal windows-changed when removing a window

https://bugzilla.gnome.org/show_bug.cgi?id=599412
This commit is contained in:
Colin Walters 2009-10-23 10:56:48 -04:00
parent 17c8173640
commit 369e0c2c6f

View File

@ -329,6 +329,8 @@ _shell_app_remove_window (ShellApp *app,
g_object_unref (window);
app->windows = g_slist_remove (app->windows, window);
g_signal_emit (app, shell_app_signals[WINDOWS_CHANGED], 0);
if (app->windows == NULL)
disconnect_workspace_switch (app);
}