summaryrefslogtreecommitdiff
path: root/src/caja-bookmark-list.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-06-14 09:30:32 +0200
committerZenWalker <[email protected]>2019-06-17 15:18:27 +0200
commitef29013fdfd0df5d4a3cc6c5a8fb1583aabef952 (patch)
tree51c2c4afb9259ec97ba3303591bbc8e946f277d9 /src/caja-bookmark-list.c
parentcbd6b367e9b05c08bff88ee1cfa03c09c7ee2558 (diff)
downloadcaja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.bz2
caja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.xz
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-bookmark-list.c')
-rw-r--r--src/caja-bookmark-list.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/caja-bookmark-list.c b/src/caja-bookmark-list.c
index 2eb69edc..8be0a00b 100644
--- a/src/caja-bookmark-list.c
+++ b/src/caja-bookmark-list.c
@@ -60,9 +60,7 @@ static CajaBookmark *
new_bookmark_from_uri (const char *uri, const char *label)
{
CajaBookmark *new_bookmark;
- CajaFile *file;
char *name;
- GIcon *icon;
gboolean has_label;
GFile *location;
gboolean native;
@@ -88,10 +86,14 @@ new_bookmark_from_uri (const char *uri, const char *label)
if (uri)
{
+ CajaFile *file;
+ GIcon *icon;
+
native = g_file_is_native (location);
file = caja_file_get (location);
icon = NULL;
+
if (caja_file_check_if_ready (file,
CAJA_FILE_ATTRIBUTES_FOR_ICON))
{
@@ -417,7 +419,6 @@ caja_bookmark_list_delete_items_with_uri (CajaBookmarkList *bookmarks,
{
GList *node, *next;
gboolean list_changed;
- char *bookmark_uri;
g_return_if_fail (CAJA_IS_BOOKMARK_LIST (bookmarks));
g_return_if_fail (uri != NULL);
@@ -425,6 +426,8 @@ caja_bookmark_list_delete_items_with_uri (CajaBookmarkList *bookmarks,
list_changed = FALSE;
for (node = bookmarks->list; node != NULL; node = next)
{
+ char *bookmark_uri;
+
next = node->next;
bookmark_uri = caja_bookmark_get_uri (CAJA_BOOKMARK (node->data));