diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-06-03 15:01:27 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-06-03 15:01:27 -0500 |
commit | 9ffe5cb1264ecc2298681409e3af41b42dbc0f91 (patch) | |
tree | e8971c309aa33fd4db1402f6aa9a7f990b5faf1b /src | |
parent | dfda99035410a5de6d8ca33da203a3b128c44b25 (diff) | |
download | ayatana-indicator-session-9ffe5cb1264ecc2298681409e3af41b42dbc0f91.tar.gz ayatana-indicator-session-9ffe5cb1264ecc2298681409e3af41b42dbc0f91.tar.bz2 ayatana-indicator-session-9ffe5cb1264ecc2298681409e3af41b42dbc0f91.zip |
In user-menu-mgr.c, make the static variable 'switch_menuitem' a local s.t. it's not preserved between test sessions
Diffstat (limited to 'src')
-rw-r--r-- | src/user-menu-mgr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/user-menu-mgr.c b/src/user-menu-mgr.c index fd9f3bd..328aa9c 100644 --- a/src/user-menu-mgr.c +++ b/src/user-menu-mgr.c @@ -26,7 +26,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>. #include "users-service-dbus.h" static GSettings* settings = NULL; -static DbusmenuMenuitem *switch_menuitem = NULL; struct _UserMenuMgr { @@ -142,7 +141,7 @@ user_menu_mgr_rebuild_items (UserMenuMgr *self, gboolean greeter_mode) // TODO we should really return here if the menu is not going to be shown. - switch_menuitem = dbusmenu_menuitem_new (); + DbusmenuMenuitem * switch_menuitem = dbusmenu_menuitem_new (); dbusmenu_menuitem_property_set (switch_menuitem, DBUSMENU_MENUITEM_PROP_TYPE, MENU_SWITCH_TYPE); |