diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2014-04-03 14:05:45 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2014-04-03 14:05:45 +0000 |
commit | aa1405ad25d0fc43655ff353fa22f0debb941e8d (patch) | |
tree | 3249809ed6882f57dbcb6491886fa8fe0d7dc4a6 /mate-base | |
parent | add fetch restriction and fix LICENSE wrt #465986 (diff) | |
download | historical-aa1405ad25d0fc43655ff353fa22f0debb941e8d.tar.gz historical-aa1405ad25d0fc43655ff353fa22f0debb941e8d.tar.bz2 historical-aa1405ad25d0fc43655ff353fa22f0debb941e8d.zip |
Revision bump. Backported x-caja-desktop issue solution to fix unnecessary multiple windows popping up. Fixes bug #506660, reported by Joakim Tjernlund; backport inspired by infirit.
Package-Manager: portage-HEAD/cvs/Linux x86_64
Manifest-Sign-Key: 0x6D34E57D
Diffstat (limited to 'mate-base')
4 files changed, 222 insertions, 9 deletions
diff --git a/mate-base/mate-file-manager/ChangeLog b/mate-base/mate-file-manager/ChangeLog index 60b3f6808fbd..1365226eebd6 100644 --- a/mate-base/mate-file-manager/ChangeLog +++ b/mate-base/mate-file-manager/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for mate-base/mate-file-manager # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mate-base/mate-file-manager/ChangeLog,v 1.5 2014/03/10 22:55:54 tomwij Exp $ +# $Header: /var/cvsroot/gentoo-x86/mate-base/mate-file-manager/ChangeLog,v 1.6 2014/04/03 14:05:41 tomwij Exp $ + +*mate-file-manager-1.6.3-r1 (03 Apr 2014) + + 03 Apr 2014; Tom Wijsman <TomWij@gentoo.org> +files/mate-file-manager-1.6.3-r1 + -fix-x-caja-desktop-multiple-windows-issue.patch, + +mate-file-manager-1.6.3-r1.ebuild: + Revision bump. Backported x-caja-desktop issue solution to fix unnecessary + multiple windows popping up. Fixes bug #506660, reported by Joakim Tjernlund; + backport inspired by infirit. 10 Mar 2014; Tom Wijsman <TomWij@gentoo.org> mate-file-manager-1.6.3.ebuild: Update dependencies per the consensus formed with ssuominen. diff --git a/mate-base/mate-file-manager/Manifest b/mate-base/mate-file-manager/Manifest index 2cdd46bf7b0a..dcf4d6c2a83d 100644 --- a/mate-base/mate-file-manager/Manifest +++ b/mate-base/mate-file-manager/Manifest @@ -1,18 +1,20 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX mate-file-manager-1.6.3-r1-fix-x-caja-desktop-multiple-windows-issue.patch 4157 SHA256 7917e9ef8d3cf6b0fbdfd646eb089165311f91598f30295c46856adb28bfaf25 SHA512 6d722a687396ebbb8712ebbdb1a9b83c108194504b6f97dc55a67b42c6e904a1f68e3ea8a111b49e4da92dd3f95cf5922d9aed853d2c5cddc127e2e041fa5353 WHIRLPOOL 87009140ad9f764e64344a1468143ac8c3426ac325e4c5b8b8178bd99ed10203ba6bbbd65f275258413a94bee8067de10147a1ae6257c6be6a101c4972a16525 DIST mate-file-manager-1.6.3.tar.xz 3548484 SHA256 a95a654410bfcf949bec09e61b766ee71c81e64df997ffcb9913023298e55152 SHA512 98b8056879ef093b81587ee7ccaafbd450b8948fc2abd831439bbf58c4a33e47c3f3eb9872eed1466b199612d5590af6485de4b74bbedf524c7f9f18ef18b0fb WHIRLPOOL 5353a54f3d18ac2b83380cc756cc3444f1f04878cb702676ab36c38bb283f10d97770211454375b0a18096f17d627b805956e2adfa5d8f8fabda630683034a48 +EBUILD mate-file-manager-1.6.3-r1.ebuild 2440 SHA256 754db20fe11581cb49813e538d78c10c9001c6708fde68cd3c212d3f808b0a47 SHA512 89c5097ee3efd9366bb2be36ae1552c88021b74e3976ec9be319fe22aad9a77e067ca6a871a9be9451c0353658cdc5bf231456198402ff07b9096f661e13731c WHIRLPOOL c4e068c5715f7373980b090544b40a758de5b76f35cf1898081185619771507e3b12cd745bb6b25d01e55c1bd92dea83249926a6c52006e67cae89c5778cf82a EBUILD mate-file-manager-1.6.3.ebuild 2351 SHA256 32f86b2c965b827f37c121cf1da3a7384a8f62b6423483b817d16cb5a1123dc3 SHA512 0ca2d76f2fc5d373aba63700cfe59df86f3bda7e8775d7d5ac44e338f32b9ce9623df08a0c9fb4a619523ec7cf0ae3087d5d17902c0033da199133acaa4361e8 WHIRLPOOL 204732a7ec32e1946370113cabd3e7ddd9198376e9b3eaf280fcdbbd50e01b9e17d573bafca4c0eb1fda640def3e84ef27a2c9fb5343e9a8defa1820a9dbec95 -MISC ChangeLog 1189 SHA256 e244cebd3ff5b1b16d7c7b0c42bee1920710eb7ef4d4fb32f5de00dfa80b7294 SHA512 a099bc36d0ee0227d2fdd2c60e881b53d7b72e73b0db9979afcaa52b26820f9caf954b5d63301e1bce86cda2e50be81b81ece516d94800a109f751027e190b5d WHIRLPOOL dd1ff5649d8b1accd2a93ff635521e06abcb155cd6838e79f2547fad3f844dcd962031eac6f4381f70c341c9e007438ca9be1f0f73e142ddf2b31990d51b3898 +MISC ChangeLog 1593 SHA256 6e970f0625b229addf318f8b6384fde4f417514d405f93cf382b7e13ea76a7ef SHA512 ca84e43aa650dcc1c98314a914aa0a97d38722cd679e04011d7caa02d7cf58ca22e935caa58ff93579aa714b8d926e4c4a998f62d5044740813c58dc532b18bb WHIRLPOOL c36c2590986431fc2c46610192ee349b9b7d5074a2bbefe7a3bb86209b6dfd3f6ac5c58d7297b6463b780b575099e27f087b22b3ca3dcc9043cb9c26bd46263c MISC metadata.xml 499 SHA256 f7df17342fc39ef91a30e5a5fc3fea7083ce3884ae3037419458e01ed06712f0 SHA512 b949a905f073339113ba7de1d7d89a3fa5637a692f5e727c6b1be3bcda6aee768a3f87687eb581324e493cc28a08b6c31065d358d278488e3468fb4a8225e04a WHIRLPOOL b3b2c548a3168d0d5a10067108e907c95af153ecfa22abdf3b1e50a87a26fefa123984975190fd9f3b72fe564abd9135c051ad80a9220556d6412343e18d7671 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJTHkLVAAoJEJWyH81tNOV9tDMIAIjIsg1vrAHoBIwKxLKKqRCx -SSHYbtKd8WcWiXSnYJYYVM04AuZQHRFgOzXS8yzfPG35kjLArdPT4AbxkIsqtwtu -hM5GAc7eno6T37y9OPauu3GjYrNl81hHpuL41fT+8hgNZGqXBFU+tbxrNi5Kmp+c -riUvAt3lchYhTOlOtr9Y+YXSPwBvNWAZZ1fr9LmhjIQn7SRFjzft1g2N1SHObaWG -JLq5T70kB1U80oZHEjLdt0C8arj09MXFdDwWuWxMnszfqOuWFQ6HPVWLRTvMoLNW -OLjmwEUM7jB/wbhEygR9liUnOkEW4WcV5QwPub6k7lUZyLynF6znF5TzIa/gtOY= -=jXNf +iQEcBAEBCAAGBQJTPWqbAAoJEJWyH81tNOV9rEAIAIQDP9wwcHxRBuogookDmKOe +UW1UF9bjC2qyPN/9A5z8CPZDc0NZrj3zrAd53guSgMmP2SqHSDgNsjR/OLnlaibY +8JFlLTf2SWTBG+jZNwa1ent3XHw2mg577ys4m0ZbFwQO7F2t0SknaZdCXLChQ1Vk +LwXmy8SWPmiVFWJt38kbglMxr53ML0KxMFpRdjA8CT2qr45A1wRJfyBBjsLMFEbz +y5nNbB0ZyiVkdOG5B4Rifo+Tysgq9Q+fcLeamg3ObSapto2Vup70vyY3DdlCRgen +fYqBBsIh9jTsPDwPRrNX6UMDeKudhiTPSqbefripIYZuKvkrIo51lMy3lIEytYY= +=FMFM -----END PGP SIGNATURE----- diff --git a/mate-base/mate-file-manager/files/mate-file-manager-1.6.3-r1-fix-x-caja-desktop-multiple-windows-issue.patch b/mate-base/mate-file-manager/files/mate-file-manager-1.6.3-r1-fix-x-caja-desktop-multiple-windows-issue.patch new file mode 100644 index 000000000000..b818ebdd96db --- /dev/null +++ b/mate-base/mate-file-manager/files/mate-file-manager-1.6.3-r1-fix-x-caja-desktop-multiple-windows-issue.patch @@ -0,0 +1,103 @@ +Adjusted to build against 1.6.3 by removing the is_navigation boolean. + +From 4f1e756e08e61840eb9a52de4debee30006ea31e Mon Sep 17 00:00:00 2001 +From: Stefano Karapetsas <stefano@karapetsas.com> +Date: Tue, 18 Mar 2014 18:16:45 +0100 +Subject: [PATCH] Possible solution for x-caja-desktop issue + +--- + src/caja-application.c | 14 +++++++++++--- + src/caja-window-manage-views.c | 18 +++++++++++++----- + 2 files changed, 24 insertions(+), 8 deletions(-) + +diff --git a/src/caja-application.c b/src/caja-application.c +index 3f4282c..47c86c8 100644 +--- a/src/caja-application.c ++++ b/src/caja-application.c +@@ -961,6 +961,15 @@ static void drive_listen_for_eject_button (GDrive *drive, + } + } + ++static gboolean ++desktop_changed_callback_connect (CajaApplication *application) ++{ ++ g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR, ++ G_CALLBACK(desktop_location_changed_callback), ++ G_OBJECT (application)); ++ return FALSE; ++} ++ + void + caja_application_startup (CajaApplication *application, + gboolean kill_shell, +@@ -1029,9 +1038,8 @@ static void drive_listen_for_eject_button (GDrive *drive, + + /* Monitor the preference to have the desktop */ + /* point to the Unix home folder */ +- g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR, +- G_CALLBACK(desktop_location_changed_callback), +- G_OBJECT (application)); ++ g_timeout_add_seconds (30, (GSourceFunc) desktop_changed_callback_connect, application); ++ + /* Create the other windows. */ + if (urls != NULL || !no_default_window) + { +diff --git a/src/caja-window-manage-views.c b/src/caja-window-manage-views.c +index c7918e6..616e85b 100644 +--- a/src/caja-window-manage-views.c ++++ b/src/caja-window-manage-views.c +@@ -49,6 +49,7 @@ + #include <eel/eel-gtk-macros.h> + #include <eel/eel-stock-dialogs.h> + #include <eel/eel-string.h> ++#include <eel/eel-vfs-extensions.h> + #include <gtk/gtk.h> + #include <gdk/gdkx.h> + #include <glib/gi18n.h> +@@ -527,8 +528,9 @@ static void load_new_location (CajaWindowSlot *s + char *old_uri, *new_uri; + int new_slot_position; + GList *l; +- gboolean target_navigation = FALSE, target_same = FALSE; +- gboolean is_desktop; ++ gboolean target_navigation = FALSE; ++ gboolean target_same = FALSE; ++ gboolean is_desktop = FALSE; + + window = slot->pane->window; + +@@ -567,7 +570,12 @@ static void load_new_location (CajaWindowSlot *s + * otherwise it's the same window. + */ + if (is_desktop) { +- target_navigation = TRUE; ++ new_uri = g_file_get_uri (location); ++ if (g_str_has_prefix (new_uri, EEL_DESKTOP_URI)) ++ target_same = TRUE; ++ else ++ target_navigation = TRUE; ++ g_free (new_uri); + } else { + target_same = TRUE; + } +@@ -676,7 +684,7 @@ static void load_new_location (CajaWindowSlot *s + } + } + +- if ((target_window == window && target_slot == slot && ++ if (!(is_desktop && target_same) && (target_window == window && target_slot == slot && + old_location && g_file_equal (old_location, location))) { + + if (callback != NULL) { +@@ -688,7 +696,7 @@ static void load_new_location (CajaWindowSlot *s + } + + begin_location_change (target_slot, location, old_location, new_selection, +- CAJA_LOCATION_CHANGE_STANDARD, 0, NULL, callback, user_data); ++ (is_desktop && target_same) ? CAJA_LOCATION_CHANGE_RELOAD : CAJA_LOCATION_CHANGE_STANDARD, 0, NULL, callback, user_data); + + /* Additionally, load this in all slots that have no location, this means + we load both panes in e.g. a newly opened dual pane window. */ +-- +1.9.1 + diff --git a/mate-base/mate-file-manager/mate-file-manager-1.6.3-r1.ebuild b/mate-base/mate-file-manager/mate-file-manager-1.6.3-r1.ebuild new file mode 100644 index 000000000000..fb2c0e1ded2f --- /dev/null +++ b/mate-base/mate-file-manager/mate-file-manager-1.6.3-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mate-base/mate-file-manager/mate-file-manager-1.6.3-r1.ebuild,v 1.1 2014/04/03 14:05:41 tomwij Exp $ + +EAPI="5" + +GCONF_DEBUG="yes" +GNOME2_LA_PUNT="yes" + +inherit eutils gnome2 versionator virtualx + +MATE_BRANCH="$(get_version_component_range 1-2)" + +SRC_URI="http://pub.mate-desktop.org/releases/${MATE_BRANCH}/${P}.tar.xz" +DESCRIPTION="Caja file manager for the MATE desktop" +HOMEPAGE="http://mate-desktop.org" + +LICENSE="GPL-2 LGPL-2 FDL-1.1" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="X +mate +introspection +unique xmp" + +RDEPEND="dev-libs/atk:0 + >=dev-libs/glib-2.28:2 + >=dev-libs/libxml2-2.4.7:2 + || ( + >=gnome-base/gvfs-1.10.1:0[gdu] + >=gnome-base/gvfs-1.10.1:0[udisks] + ) + >=mate-base/mate-desktop-1.6:0 + >=media-libs/libexif-0.5.12:0 + >=x11-libs/gtk+-2.24:2[introspection?] + x11-libs/cairo:0 + x11-libs/gdk-pixbuf:2 + x11-libs/libICE:0 + x11-libs/libSM:0 + x11-libs/libX11:0 + x11-libs/libXext:0 + x11-libs/libXft:0 + x11-libs/libXrender:0 + >=x11-libs/pango-1.1.2:0 + virtual/libintl:0 + introspection? ( >=dev-libs/gobject-introspection-0.6.4:0 ) + unique? ( >=dev-libs/libunique-1:1 ) + xmp? ( >=media-libs/exempi-1.99.2:2 )" + +DEPEND="${RDEPEND} + >=dev-lang/perl-5:0= + dev-util/gdbus-codegen:0 + >=dev-util/intltool-0.40.1:* + >=mate-base/mate-common-1.6:0 + sys-devel/gettext:* + virtual/pkgconfig:*" + +PDEPEND="mate? ( >=x11-themes/mate-icon-theme-1.6:0 )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-r1-fix-x-caja-desktop-multiple-windows-issue.patch + + gnome2_src_prepare + + # Remove -n parameter. + sed -i -e 's:Exec=caja -n:Exec=caja:g' \ + data/caja.desktop || die + + # Remove crazy CFLAGS. + sed -i -e 's:-DG.*DISABLE_DEPRECATED::g' \ + configure{,.ac} eel/Makefile.{am,in} || die +} + +src_configure() { + gnome2_src_configure \ + --enable-unique \ + --disable-packagekit \ + --disable-update-mimedb \ + --with-gtk=2.0 \ + $(use_enable introspection) \ + $(use_enable unique) \ + $(use_enable xmp) \ + $(use_with X x) +} + +DOCS="AUTHORS ChangeLog* HACKING MAINTAINERS NEWS README THANKS TODO" + +src_test() { + unset SESSION_MANAGER + unset DBUS_SESSION_BUS_ADDRESS + + Xemake check || die "Test phase failed" +} + +pkg_postinst() { + gnome2_pkg_postinst + + elog "caja can use gstreamer to preview audio files. Just make sure" + elog "to have the necessary plugins available to play the media type you" + elog "want to preview." +} |