[caja] 01/01: debian/patches: Add 0005_fix-tree-view-open-in-new-window.patch. Fix: open new window with tree view in side panel (Closes: #851523).

Pablo Barciela zenwalker-guest at moszumanska.debian.org
Sat Apr 22 23:28:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

zenwalker-guest pushed a commit to branch debian/jessie/updates
in repository caja.

commit 60133f718feecd10d1f6f5e5dfd89dfcd0aeca0b
Author: Pablo Barciela <scow at riseup.net>
Date:   Sun Apr 23 01:11:19 2017 +0200

    debian/patches: Add 0005_fix-tree-view-open-in-new-window.patch. Fix: open new window with tree view in side panel (Closes: #851523).
---
 .../0005_fix-tree-view-open-in-new-window.patch    | 45 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 46 insertions(+)

diff --git a/debian/patches/0005_fix-tree-view-open-in-new-window.patch b/debian/patches/0005_fix-tree-view-open-in-new-window.patch
new file mode 100644
index 0000000..050a221
--- /dev/null
+++ b/debian/patches/0005_fix-tree-view-open-in-new-window.patch
@@ -0,0 +1,45 @@
+From 3d3d4a2fd72d0403b097fb4d0a38edb68d0d6c83 Mon Sep 17 00:00:00 2001
+From: bl0ckeduser <bl0ckedusersoft at gmail.com>
+Date: Thu, 13 Aug 2015 13:49:57 -0400
+Subject: [PATCH] Fix for #383 - tree view open in new window
+
+diff --git a/src/file-manager/fm-tree-view.c b/src/file-manager/fm-tree-view.c
+index ab2f159..60a5b1b 100644
+--- a/src/file-manager/fm-tree-view.c
++++ b/src/file-manager/fm-tree-view.c
+@@ -54,6 +54,10 @@
+ #include <libcaja-private/caja-module.h>
+ #include <libcaja-private/caja-window-info.h>
+ #include <libcaja-private/caja-window-slot-info.h>
++#include <libcaja-private/caja-directory.h>
++#include <libcaja-private/caja-directory-private.h>
++#include <libcaja-private/caja-file.h>
++#include <libcaja-private/caja-file-private.h>
+ 
+ #include <src/glibcompat.h> /* for g_list_free_full */
+ 
+@@ -122,6 +126,7 @@ static void  fm_tree_view_activate_file     (FMTreeView *view,
+         CajaFile *file,
+         CajaWindowOpenFlags flags);
+ static GType fm_tree_view_provider_get_type (void);
++static GtkWindow *fm_tree_view_get_containing_window (FMTreeView *view);
+ 
+ static void create_popup_menu (FMTreeView *view);
+ 
+@@ -928,7 +933,15 @@ static void
+ fm_tree_view_open_in_new_window_cb (GtkWidget *menu_item,
+                                     FMTreeView *view)
+ {
+-    fm_tree_view_activate_file (view, view->details->popup_file, CAJA_WINDOW_OPEN_FLAG_NEW_WINDOW);
++    /* fm_tree_view_activate_file (view, view->details->popup_file, CAJA_WINDOW_OPEN_FLAG_NEW_WINDOW); */
++
++    caja_mime_activate_file  (fm_tree_view_get_containing_window (view),
++                              caja_window_info_get_active_slot (view->details->window),
++                              view->details->popup_file,
++                              g_file_get_path (view->details->popup_file->details->directory->details->location),
++                              CAJA_WINDOW_OPEN_FLAG_NEW_WINDOW,
++                              0,
++                              0);
+ }
+ 
+ static void
diff --git a/debian/patches/series b/debian/patches/series
index 1358a57..6263b61 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002_dont-start-desktop-outside-of-MATE-sessions.patch
 0003_fix-crash-in-places-sidebar.patch
 0004_avoid-automounts-while-screen-is-locked.patch
+0005_fix-tree-view-open-in-new-window.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/caja.git



More information about the pkg-mate-commits mailing list