Index: head/x11-fm/thunar/Makefile =================================================================== --- head/x11-fm/thunar/Makefile (revision 386981) +++ head/x11-fm/thunar/Makefile (revision 386982) @@ -1,72 +1,70 @@ # Created by: Oliver Lehmann # $FreeBSD$ PORTNAME= Thunar -PORTVERSION= 1.6.8 -PORTREVISION= 1 +PORTVERSION= 1.6.9 CATEGORIES= x11-fm xfce MASTER_SITES= XFCE/src/xfce/${PORTNAME:tl}/${PORTVERSION:R} DIST_SUBDIR= xfce4 MAINTAINER= xfce@FreeBSD.org COMMENT= Xfce file manager LICENSE= GPLv2 LGPL20 LICENSE_COMB= multi LICENSE_FILE= ${WRKSRC}/COPYING ${WRKSRC}/COPYING.LIB LIB_DEPENDS= libtumbler-1.so:${PORTSDIR}/deskutils/xfce4-tumbler \ libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib RUN_DEPENDS= pkexec:${PORTSDIR}/sysutils/polkit GNU_CONFIGURE= yes INSTALLS_ICONS= yes USE_GNOME= gtk20 intltool intlhack gdkpixbuf2 USE_LDCONFIG= yes USE_XFCE= libexo USE_XORG= sm x11 USES= desktop-file-utils gmake pathfix perl5 libtool pkgconfig \ gettext-tools xfce tar:bzip2 INSTALL_TARGET= install-strip OPTIONS_DEFINE= NLS NOTIFY OPTIONS_GROUP= PLUGINS OPTIONS_GROUP_PLUGINS= PLUG_APR PLUG_SBR PLUG_TPA PLUG_UCA PLUG_WALL OPTIONS_DEFAULT= NOTIFY PLUG_APR PLUG_SBR PLUG_UCA PLUG_TPA PLUG_WALL # Override NOTIFY_DESC NOTIFY_DESC= Display notifications PLUG_APR_DESC= Advanced Properties plugin PLUG_SBR_DESC= Simple Builtin Renamers plugin PLUG_TPA_DESC= Trash Panel Applet plugin PLUG_UCA_DESC= User Customizable Actions plugin PLUG_WALL_DESC= Wallpaper plugin NLS_USES= gettext-runtime NLS_CONFIGURE_ENABLE= nls NOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify NOTIFY_CONFIGURE_ENABLE= notifications PLUG_APR_LIB_DEPENDS= libexif.so:${PORTSDIR}/graphics/libexif PLUG_APR_CONFIGURE_ENABLE= apr-plugin exif PLUG_SBR_LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre PLUG_SBR_CONFIGURE_ENABLE= sbr-plugin pcre PLUG_TPA_USE= gnome=gvfs xfce=panel PLUG_TPA_CONFIGURE_ENABLE= tpa-plugin PLUG_UCA_CONFIGURE_ENABLE= uca-plugin PLUG_WALL_CONFIGURE_ENABLE= wallpaper-plugin OPTIONS_SUB= yes CONFIGURE_ARGS+=--enable-gio-unix \ --disable-gudev \ - --enable-dbus \ - --without-html-dir + --enable-dbus post-patch: ${REINPLACE_CMD} -e 's|internet-mail|mail-send|' \ ${WRKSRC}/plugins/thunar-sendto-email/thunar-sendto-email.desktop.in.in # Workaround for missing 'inode/directory' content-type icon. # https://bugs.freedesktop.org/show_bug.cgi?id=89150 ${FIND} ${WRKSRC} -type f -name '*.c' \ | ${XARGS} ${REINPLACE_CMD} -e 's|inode/directory|folder|' .include Index: head/x11-fm/thunar/distinfo =================================================================== --- head/x11-fm/thunar/distinfo (revision 386981) +++ head/x11-fm/thunar/distinfo (revision 386982) @@ -1,2 +1,2 @@ -SHA256 (xfce4/Thunar-1.6.8.tar.bz2) = 4079ccffe990cdccee48a0ae200d8a5bc9335c34721d7923b375795940cf79bb -SIZE (xfce4/Thunar-1.6.8.tar.bz2) = 2169171 +SHA256 (xfce4/Thunar-1.6.9.tar.bz2) = 75f3622cbe6ab6837f38d856faeac75a1191be8a08dc4c98ba35b61e312b94e5 +SIZE (xfce4/Thunar-1.6.9.tar.bz2) = 1947746 Index: head/x11-fm/thunar/files/patch-thunar_main.c =================================================================== --- head/x11-fm/thunar/files/patch-thunar_main.c (nonexistent) +++ head/x11-fm/thunar/files/patch-thunar_main.c (revision 386982) @@ -0,0 +1,95 @@ +Revert fix for bug #9513 + +--- thunar/main.c.orig 2015-05-15 16:38:08 UTC ++++ thunar/main.c +@@ -53,7 +53,7 @@ static gboolean opt_daemon = FALSE; + static gchar *opt_sm_client_id = NULL; + static gboolean opt_quit = FALSE; + static gboolean opt_version = FALSE; +-static ThunarFile *thunar_trash_file = NULL; ++ + + + /* --- command line options --- */ +@@ -97,13 +97,6 @@ thunar_delayed_exit_check (gpointer user + } + else + { +- /* unref the trash bin */ +- if (thunar_trash_file != NULL) +- { +- g_object_unref (thunar_trash_file); +- thunar_trash_file = NULL; +- } +- + /* no command line arguments opened in Thunar, exit now */ + gtk_main_quit (); + +@@ -115,38 +108,6 @@ thunar_delayed_exit_check (gpointer user + + + +-static void +-thunar_force_spawn_trash (void) +-{ +- GFile *trash; +- +- /* check that this has not happened yet */ +- if (thunar_trash_file != NULL) +- return; +- +- /* gvfs has no trash support */ +- if (!thunar_g_vfs_is_uri_scheme_supported ("trash")) +- return; +- +- trash = thunar_g_file_new_for_trash (); +- thunar_trash_file = thunar_file_cache_lookup (trash); +- if (thunar_trash_file == NULL) +- { +- thunar_trash_file = thunar_file_get (trash, NULL); +- if (thunar_trash_file) +- { +- /* schedule a few reloads */ +- thunar_file_reload_idle (thunar_trash_file); +- thunar_file_reload_idle_timeout (thunar_trash_file, 2000); +- thunar_file_reload_idle_timeout (thunar_trash_file, 3000); +- thunar_file_reload_idle_timeout (thunar_trash_file, 5000); +- } +- } +- g_object_unref (trash); +-} +- +- +- + int + main (int argc, char **argv) + { +@@ -290,14 +251,6 @@ main (int argc, char **argv) + /* initialize the thunar stock items/icons */ + thunar_stock_init (); + +- /* For the trash state to be correct, gvfsd-trash needs to have been +- * spawned. If the trash file is not in cache, this means we could +- * access it the first time and the daemon might not have been +- * spawned yet. So let's reload the trash later in idle, so that +- * the state gets updated correctly (bug #9513). +- */ +- thunar_force_spawn_trash (); +- + /* acquire a reference on the global application */ + application = thunar_application_get (); + +@@ -363,13 +316,6 @@ error0: + g_object_unref (G_OBJECT (dbus_service)); + #endif + +- /* unreference the trash file */ +- if (thunar_trash_file != NULL) +- { +- g_object_unref (thunar_trash_file); +- thunar_trash_file = NULL; +- } +- + /* disconnect from the session manager */ + g_object_unref (G_OBJECT (session_client)); + Property changes on: head/x11-fm/thunar/files/patch-thunar_main.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-fm/thunar/files/patch-thunar_thunar-dbus-service.c =================================================================== --- head/x11-fm/thunar/files/patch-thunar_thunar-dbus-service.c (nonexistent) +++ head/x11-fm/thunar/files/patch-thunar_thunar-dbus-service.c (revision 386982) @@ -0,0 +1,10 @@ +--- thunar/thunar-dbus-service.c.orig 2015-05-14 17:33:17 UTC ++++ thunar/thunar-dbus-service.c +@@ -357,6 +357,7 @@ thunar_dbus_service_connect_trash_bin (T + g_signal_connect_swapped (G_OBJECT (dbus_service->trash_bin), "changed", + G_CALLBACK (thunar_dbus_service_trash_bin_changed), + dbus_service); ++ thunar_file_reload_idle (dbus_service->trash_bin); + } + g_object_unref (trash_bin_path); + } Property changes on: head/x11-fm/thunar/files/patch-thunar_thunar-dbus-service.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-fm/thunar/files/patch-thunar_thunar-file.c =================================================================== --- head/x11-fm/thunar/files/patch-thunar_thunar-file.c (revision 386981) +++ head/x11-fm/thunar/files/patch-thunar_thunar-file.c (revision 386982) @@ -1,12 +1,60 @@ -Fix Trash panel plugin (PLUG_TPA), now receives right signal (bug #11896) - ---- thunar/thunar-file.c.orig 2015-05-05 17:25:29 UTC +--- thunar/thunar-file.c.orig 2015-05-16 14:25:55 UTC +++ thunar/thunar-file.c -@@ -661,6 +661,7 @@ thunar_file_monitor_update (GFile - switch (event_type) - { - case G_FILE_MONITOR_EVENT_CREATED: -+ case G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED: - case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT: - case G_FILE_MONITOR_EVENT_PRE_UNMOUNT: - case G_FILE_MONITOR_EVENT_DELETED: +@@ -3910,8 +3910,12 @@ thunar_file_unwatch (ThunarFile *file) + * + * You must be able to handle the case that @file is + * destroyed during the reload call. ++ * ++ * Return value: FALSE because if used as a callback function for ++ * thunar_file_reload_idle it should be automatically removed from ++ * the list of event sources so it is not called again. + **/ +-void ++gboolean + thunar_file_reload (ThunarFile *file) + { + _thunar_return_if_fail (THUNAR_IS_FILE (file)); +@@ -3923,12 +3927,13 @@ thunar_file_reload (ThunarFile *file) + { + /* destroy the file if we cannot query any file information */ + thunar_file_destroy (file); +- return; ++ return FALSE; + } + + /* ... and tell others */ + thunar_file_changed (file); +- ++ ++ return FALSE; + } + + +@@ -3952,27 +3957,6 @@ thunar_file_reload_idle (ThunarFile *fil + + + /** +- * thunar_file_reload_idle_timeout: +- * @file : a #ThunarFile instance. +- * @timeout : the timeout in ms after which the reload should happen +- * +- * Schedules a reload of the @file by calling thunar_file_reload in +- * idle after @timeout milliseconds have passed. +- * +- **/ +-void +-thunar_file_reload_idle_timeout (ThunarFile *file, +- guint timeout) +-{ +- _thunar_return_if_fail (THUNAR_IS_FILE (file)); +- +- g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE, timeout, +- (GSourceFunc) thunar_file_reload, file, NULL); +-} +- +- +- +-/** + * thunar_file_destroy: + * @file : a #ThunarFile instance. + * Index: head/x11-fm/thunar/files/patch-thunar_thunar-file.h =================================================================== --- head/x11-fm/thunar/files/patch-thunar_thunar-file.h (nonexistent) +++ head/x11-fm/thunar/files/patch-thunar_thunar-file.h (revision 386982) @@ -0,0 +1,15 @@ +--- thunar/thunar-file.h.orig 2015-05-15 16:38:08 UTC ++++ thunar/thunar-file.h +@@ -238,11 +238,8 @@ const gchar *thunar_file_get_icon_n + + void thunar_file_watch (ThunarFile *file); + void thunar_file_unwatch (ThunarFile *file); +- +-void thunar_file_reload (ThunarFile *file); ++gboolean thunar_file_reload (ThunarFile *file); + void thunar_file_reload_idle (ThunarFile *file); +-void thunar_file_reload_idle_timeout (ThunarFile *file, +- guint timeout); + void thunar_file_reload_parent (ThunarFile *file); + + void thunar_file_destroy (ThunarFile *file); Property changes on: head/x11-fm/thunar/files/patch-thunar_thunar-file.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-fm/thunar/files/patch-thunar_thunar-trash-action.c =================================================================== --- head/x11-fm/thunar/files/patch-thunar_thunar-trash-action.c (nonexistent) +++ head/x11-fm/thunar/files/patch-thunar_thunar-trash-action.c (revision 386982) @@ -0,0 +1,12 @@ +--- thunar/thunar-trash-action.c.orig 2015-05-15 08:57:43 UTC ++++ thunar/thunar-trash-action.c +@@ -88,6 +88,9 @@ thunar_trash_action_init (ThunarTrashAct + + /* initially update the stock icon */ + thunar_trash_action_changed (trash_action, trash_action->trash_bin); ++ ++ /* schedule a reload in idle (fix for bug #9513) */ ++ thunar_file_reload_idle (trash_action->trash_bin); + } + } + Property changes on: head/x11-fm/thunar/files/patch-thunar_thunar-trash-action.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property