[gnome-panel] cleanup



commit 638a9f0b727aed358588ad18afd6a10dbfecfd74
Author: Vincent Untz <vuntz gnome org>
Date:   Thu Mar 24 12:53:06 2011 +0100

    cleanup

 gnome-panel/panel-lockdown.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/panel-lockdown.c b/gnome-panel/panel-lockdown.c
index efc7401..38c0b69 100644
--- a/gnome-panel/panel-lockdown.c
+++ b/gnome-panel/panel-lockdown.c
@@ -29,8 +29,6 @@
 
 #include "panel-lockdown.h"
 
-static PanelLockdown *shared_lockdown = NULL;
-
 struct _PanelLockdownPrivate {
         GSettings *desktop_settings;
         GSettings *panel_settings;
@@ -455,6 +453,8 @@ panel_lockdown_on_notify (PanelLockdown       *lockdown,
 PanelLockdown *
 panel_lockdown_get (void)
 {
+        static PanelLockdown *shared_lockdown = NULL;
+
         if (shared_lockdown == NULL) {
                 shared_lockdown = g_object_new (PANEL_TYPE_LOCKDOWN, NULL);
                 panel_cleanup_register (panel_cleanup_unref_and_nullify,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]