diff options
author | Pablo Barciela <[email protected]> | 2019-06-14 09:30:32 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 00:07:37 +0200 |
commit | 25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67 (patch) | |
tree | 2a79eb2b3fe44cf6b49ec1b2bf23092cbef5d6a1 /src/caja-bookmark-list.c | |
parent | ed722a990406ce48b353c5eb7499fa8662cdff12 (diff) | |
download | caja-25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67.tar.bz2 caja-25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67.tar.xz |
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-bookmark-list.c')
-rw-r--r-- | src/caja-bookmark-list.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/caja-bookmark-list.c b/src/caja-bookmark-list.c index 33beaef9..041241dd 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)); |