summaryrefslogtreecommitdiff
path: root/src/caja-window-slot.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-slot.c
parentcbd6b367e9b05c08bff88ee1cfa03c09c7ee2558 (diff)
downloadcaja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.bz2
caja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.xz
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-window-slot.c')
-rw-r--r--src/caja-window-slot.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/caja-window-slot.c b/src/caja-window-slot.c
index a6e46017..e5c71350 100644
--- a/src/caja-window-slot.c
+++ b/src/caja-window-slot.c
@@ -72,15 +72,16 @@ query_editor_changed_callback (CajaSearchBar *bar,
static void
real_update_query_editor (CajaWindowSlot *slot)
{
- GtkWidget *query_editor;
- CajaQuery *query;
CajaDirectory *directory;
- CajaSearchDirectory *search_directory;
directory = caja_directory_get (slot->location);
if (CAJA_IS_SEARCH_DIRECTORY (directory))
{
+ GtkWidget *query_editor;
+ CajaQuery *query;
+ CajaSearchDirectory *search_directory;
+
search_directory = CAJA_SEARCH_DIRECTORY (directory);
query_editor = caja_query_editor_new (caja_search_directory_is_saved_search (search_directory),
@@ -370,7 +371,6 @@ caja_window_slot_update_icon (CajaWindowSlot *slot)
CajaWindow *window;
CajaIconInfo *info;
const char *icon_name;
- GdkPixbuf *pixbuf;
window = slot->pane->window;
@@ -399,6 +399,8 @@ caja_window_slot_update_icon (CajaWindowSlot *slot)
}
else
{
+ GdkPixbuf *pixbuf;
+
pixbuf = caja_icon_info_get_pixbuf_nodefault (info);
if (pixbuf)