View | Details | Raw Unified | Return to bug 217946 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	Thunar
4
PORTNAME=	Thunar
5
DISTVERSION=	1.6.13
5
DISTVERSION=	1.6.13
6
PORTREVISION=	1
6
CATEGORIES=	x11-fm xfce
7
CATEGORIES=	x11-fm xfce
7
MASTER_SITES=	XFCE/src/xfce/${PORTNAME:tl}/${PORTVERSION:R}
8
MASTER_SITES=	XFCE/src/xfce/${PORTNAME:tl}/${PORTVERSION:R}
8
DIST_SUBDIR=	xfce4
9
DIST_SUBDIR=	xfce4
(-)files/patch-thunar_thunar-file.c (+27 lines)
Line 0 Link Here
1
--- thunar/thunar-file.c.orig	2017-11-25 16:54:56 UTC
2
+++ thunar/thunar-file.c
3
@@ -3966,7 +3966,9 @@ thunar_file_unwatch (ThunarFile *file)
4
 gboolean
5
 thunar_file_reload (ThunarFile *file)
6
 {
7
-  _thunar_return_val_if_fail (THUNAR_IS_FILE (file), FALSE);
8
+  /* if the file has already been destroyed, break here */
9
+  if (!THUNAR_IS_FILE (file))
10
+      return FALSE;
11
 
12
   /* clear file pxmap cache */
13
   thunar_icon_factory_clear_pixmap_cache (file);
14
@@ -4090,11 +4092,11 @@ thunar_file_compare_by_name (const ThunarFile *file_a,
15
 
16
   /* case insensitive checking */
17
   if (G_LIKELY (!case_sensitive))
18
-    result = strcmp (file_a->collate_key_nocase, file_b->collate_key_nocase);
19
+    result = g_strcmp0 (file_a->collate_key_nocase, file_b->collate_key_nocase);
20
 
21
   /* fall-back to case sensitive */
22
   if (result == 0)
23
-    result = strcmp (file_a->collate_key, file_b->collate_key);
24
+    result = g_strcmp0 (file_a->collate_key, file_b->collate_key);
25
 
26
   /* this happens in the trash */
27
   if (result == 0)

Return to bug 217946