summaryrefslogtreecommitdiff
path: root/src/caja-notebook.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-06-14 09:30:32 +0200
committerraveit65 <[email protected]>2022-07-20 00:07:37 +0200
commit25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67 (patch)
tree2a79eb2b3fe44cf6b49ec1b2bf23092cbef5d6a1 /src/caja-notebook.c
parented722a990406ce48b353c5eb7499fa8662cdff12 (diff)
downloadcaja-25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67.tar.bz2
caja-25ffc1e58eeb5c2faef66eba1ac58bf0ac19ff67.tar.xz
src: reduce the scope of some variables
Diffstat (limited to 'src/caja-notebook.c')
-rw-r--r--src/caja-notebook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/caja-notebook.c b/src/caja-notebook.c
index ac6727f4..266bf2bd 100644
--- a/src/caja-notebook.c
+++ b/src/caja-notebook.c
@@ -222,7 +222,6 @@ caja_notebook_sync_tab_label (CajaNotebook *notebook,
CajaWindowSlot *slot)
{
GtkWidget *hbox, *label;
- char *location_name;
g_return_if_fail (CAJA_IS_NOTEBOOK (notebook));
g_return_if_fail (CAJA_IS_WINDOW_SLOT (slot));
@@ -238,6 +237,8 @@ caja_notebook_sync_tab_label (CajaNotebook *notebook,
if (slot->location != NULL)
{
+ char *location_name;
+
/* Set the tooltip on the label's parent (the tab label hbox),
* so it covers all of the tab label.
*/