Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
thunar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pratik Karki
thunar
Commits
1980629d
Commit
1980629d
authored
3 years ago
by
Sergios - Anestis Kefalidis
Committed by
Alexander Schwinn
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Support shared thumbnail repositories (Issue #262)
Issue #262 MR !126 Libxfce4util MR !18
parent
fe834bfb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac.in
+1
-1
1 addition, 1 deletion
configure.ac.in
thunar/thunar-file.c
+20
-6
20 additions, 6 deletions
thunar/thunar-file.c
with
21 additions
and
7 deletions
configure.ac.in
+
1
−
1
View file @
1980629d
...
@@ -152,7 +152,7 @@ XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.56.0])
...
@@ -152,7 +152,7 @@ XDT_CHECK_PACKAGE([GTHREAD], [gthread-2.0], [2.56.0])
XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.56.0])
XDT_CHECK_PACKAGE([GMODULE], [gmodule-2.0], [2.56.0])
XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.22.0])
XDT_CHECK_PACKAGE([GTK], [gtk+-3.0], [3.22.0])
XDT_CHECK_PACKAGE([GDK_PIXBUF], [gdk-pixbuf-2.0], [2.14.0])
XDT_CHECK_PACKAGE([GDK_PIXBUF], [gdk-pixbuf-2.0], [2.14.0])
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.17.
0
])
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.17.
1
])
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.17.0])
XDT_CHECK_PACKAGE([LIBXFCE4UI], [libxfce4ui-2], [4.17.0])
XDT_CHECK_PACKAGE([LIBXFCE4KBD_PRIVATE], [libxfce4kbd-private-3], [4.12.0])
XDT_CHECK_PACKAGE([LIBXFCE4KBD_PRIVATE], [libxfce4kbd-private-3], [4.12.0])
XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.12.0])
XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.12.0])
...
...
This diff is collapsed.
Click to expand it.
thunar/thunar-file.c
+
20
−
6
View file @
1980629d
...
@@ -3617,7 +3617,6 @@ thunar_file_get_thumbnail_path (ThunarFile *file, ThunarThumbnailSize thumbnail_
...
@@ -3617,7 +3617,6 @@ thunar_file_get_thumbnail_path (ThunarFile *file, ThunarThumbnailSize thumbnail_
g_free
(
uri
);
g_free
(
uri
);
filename
=
g_strconcat
(
g_checksum_get_string
(
checksum
),
".png"
,
NULL
);
filename
=
g_strconcat
(
g_checksum_get_string
(
checksum
),
".png"
,
NULL
);
g_checksum_free
(
checksum
);
/* The thumbnail is in the format/location
/* The thumbnail is in the format/location
* $XDG_CACHE_HOME/thumbnails/(nromal|large)/MD5_Hash_Of_URI.png
* $XDG_CACHE_HOME/thumbnails/(nromal|large)/MD5_Hash_Of_URI.png
...
@@ -3642,14 +3641,29 @@ thunar_file_get_thumbnail_path (ThunarFile *file, ThunarThumbnailSize thumbnail_
...
@@ -3642,14 +3641,29 @@ thunar_file_get_thumbnail_path (ThunarFile *file, ThunarThumbnailSize thumbnail_
filename
,
NULL
);
filename
,
NULL
);
if
(
!
g_file_test
(
file
->
thumbnail_path
,
G_FILE_TEST_EXISTS
))
if
(
!
g_file_test
(
file
->
thumbnail_path
,
G_FILE_TEST_EXISTS
))
{
{
/* Thumbnail doesn't exist in either spot */
g_free
(
file
->
thumbnail_path
);
g_free
(
file
->
thumbnail_path
);
file
->
thumbnail_path
=
NULL
;
file
->
thumbnail_path
=
NULL
;
}
if
(
thunar_file_is_directory
(
file
)
==
FALSE
)
{
/* Thumbnail doesn't exist in either spot, look for shared repository */
uri
=
thunar_file_dup_uri
(
file
);
file
->
thumbnail_path
=
xfce_create_shared_thumbnail_path
(
uri
,
thunar_thumbnail_size_get_nick
(
thumbnail_size
));
g_free
(
uri
);
if
(
!
g_file_test
(
file
->
thumbnail_path
,
G_FILE_TEST_EXISTS
))
{
/* Thumbnail doesn't exist */
g_free
(
file
->
thumbnail_path
);
file
->
thumbnail_path
=
NULL
;
}
}
}
}
}
g_free
(
filename
);
g_free
(
filename
);
g_checksum_free
(
checksum
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment