From owner-svn-ports-head@FreeBSD.ORG Sat Jan 3 17:57:57 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E35267A; Sat, 3 Jan 2015 17:57:57 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FAC3209A; Sat, 3 Jan 2015 17:57:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t03HvvO9077840; Sat, 3 Jan 2015 17:57:57 GMT (envelope-from olivierd@FreeBSD.org) Received: (from olivierd@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t03Hvume077836; Sat, 3 Jan 2015 17:57:56 GMT (envelope-from olivierd@FreeBSD.org) Message-Id: <201501031757.t03Hvume077836@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: olivierd set sender to olivierd@FreeBSD.org using -f From: Olivier Duchateau Date: Sat, 3 Jan 2015 17:57:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r376146 - in head/x11-fm/thunar: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2015 17:57:57 -0000 Author: olivierd Date: Sat Jan 3 17:57:55 2015 New Revision: 376146 URL: https://svnweb.freebsd.org/changeset/ports/376146 QAT: https://qat.redports.org/buildarchive/r376146/ Log: - Gnome is default icons theme [1] Not switched to Adwaita, because Thunar and some Xfce's widgets still use stock item (deprecated since GTK 3.10, and not available in x11-themes/adwaita-icon-theme) - Add support of GTK3 bookmarks files [2] - Bump PORTREVISION PR: 183690 [1] Requested by: Rostislav Krasny Obtained from: Xfce upstream repository [2] Added: head/x11-fm/thunar/files/patch-thunar__thunar-gio-extensions.c (contents, props changed) head/x11-fm/thunar/files/patch-thunar__thunar-shortcuts-model.c (contents, props changed) head/x11-fm/thunar/files/patch-thunar__thunar-util.c (contents, props changed) Modified: head/x11-fm/thunar/Makefile Modified: head/x11-fm/thunar/Makefile ============================================================================== --- head/x11-fm/thunar/Makefile Sat Jan 3 17:53:29 2015 (r376145) +++ head/x11-fm/thunar/Makefile Sat Jan 3 17:57:55 2015 (r376146) @@ -3,7 +3,7 @@ PORTNAME= Thunar PORTVERSION= 1.6.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= x11-fm xfce MASTER_SITES= ${MASTER_SITE_XFCE} MASTER_SITE_SUBDIR= src/xfce/${PORTNAME:tl}/${PORTVERSION:R} @@ -126,4 +126,8 @@ CONFIGURE_ARGS+=--disable-startup-notifi USE_GNOME+=gvfs .endif +post-patch: + ${REINPLACE_CMD} -e 's|internet-mail|mail-send|' \ + ${WRKSRC}/plugins/thunar-sendto-email/thunar-sendto-email.desktop.in.in + .include Added: head/x11-fm/thunar/files/patch-thunar__thunar-gio-extensions.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fm/thunar/files/patch-thunar__thunar-gio-extensions.c Sat Jan 3 17:57:55 2015 (r376146) @@ -0,0 +1,13 @@ +Add support for the GTK3 bookmarks file (bug #10627) + +--- ./thunar/thunar-gio-extensions.c.orig 2013-05-05 16:37:23.000000000 +0000 ++++ ./thunar/thunar-gio-extensions.c 2014-07-26 15:25:12.000000000 +0000 +@@ -77,7 +77,7 @@ + gchar *filename; + GFile *bookmarks; + +- filename = g_build_filename (xfce_get_homedir (), ".gtk-bookmarks", NULL); ++ filename = g_build_filename (g_get_user_config_dir (), "gtk-3.0", "bookmarks", NULL); + bookmarks = g_file_new_for_path (filename); + g_free (filename); + Added: head/x11-fm/thunar/files/patch-thunar__thunar-shortcuts-model.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fm/thunar/files/patch-thunar__thunar-shortcuts-model.c Sat Jan 3 17:57:55 2015 (r376146) @@ -0,0 +1,35 @@ +Add support for the GTK3 bookmarks file (bug #10627) + +--- ./thunar/thunar-shortcuts-model.c.orig 2013-05-05 16:37:23.000000000 +0000 ++++ ./thunar/thunar-shortcuts-model.c 2014-07-26 15:25:27.000000000 +0000 +@@ -1364,6 +1364,7 @@ + gchar *uri; + GList *lp; + GError *err = NULL; ++ GFile *parent = NULL; + + _thunar_return_if_fail (THUNAR_IS_SHORTCUTS_MODEL (model)); + +@@ -1389,6 +1390,22 @@ + } + } + ++ /* create folder if it does not exist */ ++ parent = g_file_get_parent (model->bookmarks_file); ++ if (!g_file_make_directory_with_parents (parent, NULL, &err)) ++ { ++ if (g_error_matches (err, G_IO_ERROR, G_IO_ERROR_EXISTS)) ++ { ++ g_clear_error (&err); ++ } ++ else ++ { ++ g_warning ("Failed to create bookmarks folder: %s", err->message); ++ g_error_free (err); ++ } ++ } ++ g_clear_object (&parent); ++ + /* write data to the disk */ + bookmarks_path = g_file_get_path (model->bookmarks_file); + if (!g_file_set_contents (bookmarks_path, contents->str, contents->len, &err)) Added: head/x11-fm/thunar/files/patch-thunar__thunar-util.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fm/thunar/files/patch-thunar__thunar-util.c Sat Jan 3 17:57:55 2015 (r376146) @@ -0,0 +1,28 @@ +Add support for the GTK3 bookmarks file (bug #10627) + +--- ./thunar/thunar-util.c.orig 2013-05-05 16:37:23.000000000 +0000 ++++ ./thunar/thunar-util.c 2014-07-26 15:25:35.000000000 +0000 +@@ -84,6 +84,15 @@ + + /* append the GTK+ bookmarks (if any) */ + fp = fopen (bookmarks_path, "r"); ++ g_free (bookmarks_path); ++ ++ if (G_UNLIKELY (fp == NULL)) ++ { ++ bookmarks_path = g_build_filename (g_get_home_dir (), ".gtk-bookmarks", NULL); ++ fp = fopen(bookmarks_path, "r"); ++ g_free(bookmarks_path); ++ } ++ + if (G_LIKELY (fp != NULL)) + { + while (fgets (line, sizeof (line), fp) != NULL) +@@ -119,7 +128,6 @@ + fclose (fp); + } + +- g_free (bookmarks_path); + } + +