aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-10 14:56:45 -0600
committerTed Gould <ted@gould.cx>2011-03-10 14:56:45 -0600
commit80719b658bbd8f49c15b43e841370fc5ba509246 (patch)
tree7a146d8f44d5385ff6902285bb8f34a7fd334dd2 /src/session-service.c
parent454b91173c9cf0b43993b4b9304b7d8449cd8640 (diff)
downloadayatana-indicator-session-80719b658bbd8f49c15b43e841370fc5ba509246.tar.gz
ayatana-indicator-session-80719b658bbd8f49c15b43e841370fc5ba509246.tar.bz2
ayatana-indicator-session-80719b658bbd8f49c15b43e841370fc5ba509246.zip
Reducing the scope of some of our variables
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 72f2139..28284ff 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -542,8 +542,6 @@ rebuild_items (DbusmenuMenuitem *root,
gboolean can_activate;
gboolean can_lockscreen;
GList *children;
- GDir *extra_launchers_dir;
- const gchar *extra_launcher_file;
/* Make sure we have a valid GConf client, and build one
if needed */
@@ -729,11 +727,14 @@ rebuild_items (DbusmenuMenuitem *root,
update_menu_entries(restart_shutdown_logout_mi);
/* now add extra launchers */
+ GDir *extra_launchers_dir;
extra_launchers_dir = g_dir_open (EXTRA_LAUNCHER_DIR, 0, NULL);
if (extra_launchers_dir != NULL) {
GList * launchers = NULL;
for (;;) {
+ const gchar *extra_launcher_file;
+
extra_launcher_file = g_dir_read_name (extra_launchers_dir);
if (extra_launcher_file == NULL)
break;