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-window-slot.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-window-slot.c')
-rw-r--r-- | src/caja-window-slot.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/caja-window-slot.c b/src/caja-window-slot.c index affb64a7..0a8a8a11 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) |