[gnome-control-center] shell: Fix entering the same panel twice
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] shell: Fix entering the same panel twice
- Date: Tue, 25 Sep 2012 19:26:38 +0000 (UTC)
commit b3287e1b971db4955f2914be9f6ff69a89ad99dd
Author: Bastien Nocera <hadess hadess net>
Date: Tue Sep 25 21:23:57 2012 +0200
shell: Fix entering the same panel twice
Manually this time.
https://bugzilla.gnome.org/show_bug.cgi?id=684812
shell/gnome-control-center.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 1e45188..bcd34da 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -278,6 +278,7 @@ shell_show_overview_page (GnomeControlCenter *center)
notebook_remove_page (priv->notebook, priv->current_panel_box);
priv->current_panel = NULL;
priv->current_panel_box = NULL;
+ g_clear_pointer (&priv->current_panel_id, g_free);
/* clear the search text */
g_free (priv->filter_string);
@@ -965,7 +966,7 @@ _shell_set_active_panel_from_id (CcShell *shell,
return TRUE;
}
- g_free (priv->current_panel_id);
+ g_clear_pointer (&priv->current_panel_id, g_free);
/* clear any custom widgets */
_shell_remove_all_custom_widgets (priv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]