[gnome-control-center] shell: Actually set the shell variable when switching panels
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Actually set the shell variable when switching panels
- Date: Tue, 9 Nov 2010 17:14:08 +0000 (UTC)
commit 5472040227a7a4feabf142827174e0a614e3e646
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 9 17:12:58 2010 +0000
shell: Actually set the shell variable when switching panels
libgnome-control-center/cc-shell.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgnome-control-center/cc-shell.c b/libgnome-control-center/cc-shell.c
index 323b4d9..345b0c5 100644
--- a/libgnome-control-center/cc-shell.c
+++ b/libgnome-control-center/cc-shell.c
@@ -163,8 +163,10 @@ cc_shell_set_active_panel (CcShell *shell,
/* set the new panel */
if (panel)
- shell->priv->active_panel = g_object_ref (panel);
-
+ {
+ shell->priv->active_panel = g_object_ref (panel);
+ g_object_set (G_OBJECT (panel), "shell", shell, NULL);
+ }
g_object_notify (G_OBJECT (shell), "active-panel");
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]