summaryrefslogtreecommitdiff
path: root/src/caja-window-bookmarks.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-window-bookmarks.c
parentcbd6b367e9b05c08bff88ee1cfa03c09c7ee2558 (diff)
downloadcaja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.bz2
caja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.xz
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-window-bookmarks.c')
-rw-r--r--src/caja-window-bookmarks.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/caja-window-bookmarks.c b/src/caja-window-bookmarks.c
index fde9c9d9..d9139349 100644
--- a/src/caja-window-bookmarks.c
+++ b/src/caja-window-bookmarks.c
@@ -49,7 +49,6 @@ static void refresh_bookmarks_menu (CajaWindow *window);
static void
remove_bookmarks_for_uri_if_yes (GtkDialog *dialog, int response, gpointer callback_data)
{
- const char *uri;
CajaWindow *window;
g_assert (GTK_IS_DIALOG (dialog));
@@ -59,6 +58,8 @@ remove_bookmarks_for_uri_if_yes (GtkDialog *dialog, int response, gpointer callb
if (response == GTK_RESPONSE_YES)
{
+ const char *uri;
+
uri = g_object_get_data (G_OBJECT (dialog), "uri");
caja_bookmark_list_delete_items_with_uri (window->details->bookmark_list, uri);
}
@@ -209,11 +210,11 @@ connect_proxy_cb (GtkActionGroup *action_group,
static void
update_bookmarks (CajaWindow *window)
{
- CajaBookmarkList *bookmarks;
- CajaBookmark *bookmark;
guint bookmark_count;
guint index;
GtkUIManager *ui_manager;
+ CajaBookmarkList *bookmarks;
+ CajaBookmark *bookmark = NULL;
g_assert (CAJA_IS_WINDOW (window));
g_assert (window->details->bookmarks_merge_id == 0);