summaryrefslogtreecommitdiff
path: root/src/caja-notebook.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-notebook.c
parentcbd6b367e9b05c08bff88ee1cfa03c09c7ee2558 (diff)
downloadcaja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.tar.bz2
caja-ef29013fdfd0df5d4a3cc6c5a8fb1583aabef952.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 3f8d39f9..c91ab3c3 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.
*/