[SCM] mate-file-manager Debian package branch, master, updated. 2d4caad8a380c45365e35f300850512bda06d6d0

Stefano Karapetsas stefanokarapetsas-guest at alioth.debian.org
Wed Oct 16 13:11:07 UTC 2013


Gitweb-URL: http://git.debian.org/?p=pkg-mate/mate-file-manager.git;a=commitdiff;h=2d4caad

The following commit has been merged in the master branch:
commit 2d4caad8a380c45365e35f300850512bda06d6d0
Author: Stefano Karapetsas <stefano at karapetsas.com>
Date:   Wed Oct 16 15:10:55 2013 +0200

    Add proper patches for 1.6.2 tarball
---
 debian/patches/00-fix-spatial-mode.patch           |   24 ++++++
 debian/patches/01-fix-thumbnails-frames.patch      |   65 ++++++++++++++++
 .../02-fix-crash-during-audio-preview.patch        |   22 ++++++
 .../03-fix-ctrl+a-behaviour-in-search-field.patch  |   56 ++++++++++++++
 .../04-fix-segfaults-with-thumbnails-frames.patch  |   33 ++++++++
 ...sh-during-file-rename-in-external-devices.patch |   28 +++++++
 ...erly-free-GHashTable-in-properties-window.patch |   81 ++++++++++++++++++++
 debian/patches/series                              |    7 ++
 8 files changed, 316 insertions(+)

diff --git a/debian/patches/00-fix-spatial-mode.patch b/debian/patches/00-fix-spatial-mode.patch
new file mode 100644
index 0000000..046d0d9
--- /dev/null
+++ b/debian/patches/00-fix-spatial-mode.patch
@@ -0,0 +1,24 @@
+From ecb6347e185f5973f2315060042ac3dc77b5fdb3 Mon Sep 17 00:00:00 2001
+From: infirit <infirit at gmail.com>
+Date: Sun, 01 Sep 2013 15:14:01 +0000
+Subject: Fix spatial mode crash and shift+double click
+
+Fixes issues:
+https://github.com/mate-desktop/mate-file-manager/issues/120
+https://github.com/mate-desktop/mate-file-manager/issues/161
+---
+diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
+index c624610..00ee3f0 100644
+--- a/src/file-manager/fm-icon-view.c
++++ b/src/file-manager/fm-icon-view.c
+@@ -2061,7 +2061,7 @@ icon_container_activate_alternate_callback (CajaIconContainer *container,
+     g_assert (FM_IS_ICON_VIEW (icon_view));
+     g_assert (container == get_icon_container (icon_view));
+ 
+-    open_in_tab = FALSE;
++    open_in_tab = TRUE;
+ 
+     window_info = fm_directory_view_get_caja_window (FM_DIRECTORY_VIEW (icon_view));
+ 
+--
+cgit 
diff --git a/debian/patches/01-fix-thumbnails-frames.patch b/debian/patches/01-fix-thumbnails-frames.patch
new file mode 100644
index 0000000..a334002
--- /dev/null
+++ b/debian/patches/01-fix-thumbnails-frames.patch
@@ -0,0 +1,65 @@
+From 9320cd66487c8da1a8ca3c514cd001515dba83f6 Mon Sep 17 00:00:00 2001
+From: romovs <romovs at gmail.com>
+Date: Sat, 24 Aug 2013 22:40:02 +0000
+Subject: fixed thumbnail frame not being displayed for some files. also fixes #135.
+
+---
+diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
+index 84d799f..85f8a9c 100644
+--- a/libcaja-private/caja-file.c
++++ b/libcaja-private/caja-file.c
+@@ -4276,7 +4276,9 @@ caja_file_get_icon (CajaFile *file,
+ 
+ 		pixbuf = caja_icon_info_get_pixbuf (icon);
+ 		if (pixbuf != NULL) {
+-			caja_ui_frame_image (&pixbuf);
++			if (!file->details->is_launcher && !gdk_pixbuf_get_has_alpha (pixbuf)) {
++				caja_ui_frame_image (&pixbuf);
++			}
+ 			g_object_unref (icon);
+ 
+ 			icon = caja_icon_info_new_for_pixbuf (pixbuf);
+@@ -4320,7 +4322,14 @@ caja_file_get_icon (CajaFile *file,
+ 								 MAX (h * scale, 1),
+ 								 GDK_INTERP_BILINEAR);
+ 
+-			caja_ui_frame_image (&scaled_pixbuf);
++			/* Render frames only for thumbnails of non-image files 
++			   and for images with no alpha channel. */ 
++			gboolean is_image = strncmp(eel_ref_str_peek (file->details->mime_type), "image/", 6) == 0;
++     			if (!is_image || 
++     			    is_image && !gdk_pixbuf_get_has_alpha (raw_pixbuf)) {
++				caja_ui_frame_image (&scaled_pixbuf);
++     			}
++     			
+ 			g_object_unref (raw_pixbuf);
+ 
+ 			/* Don't scale up if more than 25%, then read the original
+diff --git a/libcaja-private/caja-ui-utilities.c b/libcaja-private/caja-ui-utilities.c
+index 9732b6d..8077e97 100644
+--- a/libcaja-private/caja-ui-utilities.c
++++ b/libcaja-private/caja-ui-utilities.c
+@@ -287,21 +287,12 @@ caja_ui_frame_image (GdkPixbuf **pixbuf)
+ {
+     GdkPixbuf *pixbuf_with_frame, *frame;
+     int left_offset, top_offset, right_offset, bottom_offset;
+-    int size;
+ 
+     frame = caja_get_thumbnail_frame ();
+     if (frame == NULL) {
+         return;
+     }
+ 
+-    size = MAX (gdk_pixbuf_get_width (*pixbuf),
+-            gdk_pixbuf_get_height (*pixbuf));
+-
+-    /* We don't want frames around small icons */
+-    if (size < 128 && gdk_pixbuf_get_has_alpha (*pixbuf)) {
+-        return;
+-    }
+-
+     left_offset = CAJA_THUMBNAIL_FRAME_LEFT;
+     top_offset = CAJA_THUMBNAIL_FRAME_TOP;
+     right_offset = CAJA_THUMBNAIL_FRAME_RIGHT;
+--
+cgit 
diff --git a/debian/patches/02-fix-crash-during-audio-preview.patch b/debian/patches/02-fix-crash-during-audio-preview.patch
new file mode 100644
index 0000000..6746515
--- /dev/null
+++ b/debian/patches/02-fix-crash-during-audio-preview.patch
@@ -0,0 +1,22 @@
+From e0bff0827f00d1af70c09e38db597e4922f7c2cd Mon Sep 17 00:00:00 2001
+From: Stefano Karapetsas <stefano at karapetsas.com>
+Date: Wed, 18 Sep 2013 15:02:01 +0000
+Subject: Possible fix for crash during audio preview
+
+See https://bugzilla.redhat.com/show_bug.cgi?id=959444
+---
+diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
+index 00ee3f0..888db70 100644
+--- a/src/file-manager/fm-icon-view.c
++++ b/src/file-manager/fm-icon-view.c
+@@ -2170,6 +2170,8 @@ audio_child_died (GPid     pid,
+ {
+     FMIconView *icon_view;
+ 
++    g_return_if_fail (FM_IS_ICON_VIEW (data));
++
+     icon_view = FM_ICON_VIEW (data);
+ 
+     icon_view->details->audio_preview_child_watch = 0;
+--
+cgit 
diff --git a/debian/patches/03-fix-ctrl+a-behaviour-in-search-field.patch b/debian/patches/03-fix-ctrl+a-behaviour-in-search-field.patch
new file mode 100644
index 0000000..3c29619
--- /dev/null
+++ b/debian/patches/03-fix-ctrl+a-behaviour-in-search-field.patch
@@ -0,0 +1,56 @@
+From 749f7bf29e6c7b04d93eb54f2079455bf730a0c0 Mon Sep 17 00:00:00 2001
+From: infirit <infirit at gmail.com>
+Date: Sat, 21 Sep 2013 00:18:45 +0000
+Subject: Fix ctrl+a behaviour in search field
+
+From: Cosimo Cecchi <cosimoc at gnome.org>
+Even when we're not renaming, process events for focused GtkEditables
+before activating the menu accels and mnemonics.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=619529
+Caja bug: https://github.com/mate-desktop/mate-file-manager/issues/97
+---
+diff --git a/src/caja-window.c b/src/caja-window.c
+index 782e260..28e1ea3 100644
+--- a/src/caja-window.c
++++ b/src/caja-window.c
+@@ -1094,10 +1094,37 @@ caja_window_key_press_event (GtkWidget *widget,
+                              GdkEventKey *event)
+ {
+     CajaWindow *window;
++    CajaWindowSlot *active_slot;
++    CajaView *view;
++    GtkWidget *focus_widget;
+     int i;
+ 
+     window = CAJA_WINDOW (widget);
+ 
++    active_slot = caja_window_get_active_slot (window);
++    view = active_slot->content_view;
++
++    if (view != NULL && focus_widget != NULL &&
++        GTK_IS_EDITABLE (focus_widget)) {
++            /* if we have input focus on a GtkEditable (e.g. a GtkEntry), forward
++             * the event to it before activating accelerator bindings too.
++             */
++            if (gtk_window_propagate_key_event (GTK_WINDOW (window), event)) {
++                return TRUE;
++            }
++    }
++
++    focus_widget = gtk_window_get_focus (GTK_WINDOW (window));
++    if (view != NULL && focus_widget != NULL &&
++        GTK_IS_EDITABLE (focus_widget)) {
++            /* if we have input focus on a GtkEditable (e.g. a GtkEntry), forward
++             * the event to it before activating accelerator bindings too.
++             */
++            if (gtk_window_propagate_key_event (GTK_WINDOW (window), event)) {
++                return TRUE;
++            }
++    }
++
+     for (i = 0; i < G_N_ELEMENTS (extra_window_keybindings); i++)
+     {
+         if (extra_window_keybindings[i].keyval == event->keyval)
+--
+cgit 
diff --git a/debian/patches/04-fix-segfaults-with-thumbnails-frames.patch b/debian/patches/04-fix-segfaults-with-thumbnails-frames.patch
new file mode 100644
index 0000000..c3624bd
--- /dev/null
+++ b/debian/patches/04-fix-segfaults-with-thumbnails-frames.patch
@@ -0,0 +1,33 @@
+From 38e0a2bd39c65001100f403dd2bd4162ffd824de Mon Sep 17 00:00:00 2001
+From: Stefano Karapetsas <stefano at karapetsas.com>
+Date: Sun, 22 Sep 2013 13:01:18 +0000
+Subject: Add check if mimetype is null before apply thumbnail frame
+
+To avoid segfaults on file deletions
+---
+diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
+index 85f8a9c..fa00ac8 100644
+--- a/libcaja-private/caja-file.c
++++ b/libcaja-private/caja-file.c
+@@ -4324,12 +4324,13 @@ caja_file_get_icon (CajaFile *file,
+ 
+ 			/* Render frames only for thumbnails of non-image files 
+ 			   and for images with no alpha channel. */ 
+-			gboolean is_image = strncmp(eel_ref_str_peek (file->details->mime_type), "image/", 6) == 0;
+-     			if (!is_image || 
+-     			    is_image && !gdk_pixbuf_get_has_alpha (raw_pixbuf)) {
+-				caja_ui_frame_image (&scaled_pixbuf);
+-     			}
+-     			
++			gboolean is_image = file->details->mime_type &&
++				(strncmp(eel_ref_str_peek (file->details->mime_type), "image/", 6) == 0);
++				if (!is_image ||
++					is_image && !gdk_pixbuf_get_has_alpha (raw_pixbuf)) {
++					caja_ui_frame_image (&scaled_pixbuf);
++				}
++
+ 			g_object_unref (raw_pixbuf);
+ 
+ 			/* Don't scale up if more than 25%, then read the original
+--
+cgit 
diff --git a/debian/patches/05-fix-crash-during-file-rename-in-external-devices.patch b/debian/patches/05-fix-crash-during-file-rename-in-external-devices.patch
new file mode 100644
index 0000000..0f5ea9a
--- /dev/null
+++ b/debian/patches/05-fix-crash-during-file-rename-in-external-devices.patch
@@ -0,0 +1,28 @@
+From 73cc7e98f61b2d5f327f26a2e6f4e5004347bf01 Mon Sep 17 00:00:00 2001
+From: Stefano Karapetsas <stefano at karapetsas.com>
+Date: Thu, 19 Sep 2013 14:40:14 +0000
+Subject: Possible fix for crash during file rename in external devices
+
+Bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1005660
+Solution from: https://git.gnome.org/browse/nautilus/commit/src/nautilus-icon-view.c?h=gnome-3-2&id=a67212a
+---
+diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
+index 888db70..6ab19c4 100644
+--- a/src/file-manager/fm-icon-view.c
++++ b/src/file-manager/fm-icon-view.c
+@@ -2639,12 +2639,11 @@ fm_icon_view_icon_text_changed_callback (CajaIconContainer *container,
+         FMIconView *icon_view)
+ {
+     g_assert (CAJA_IS_FILE (file));
+-    g_assert (new_name != NULL);
+ 
+     /* Don't allow a rename with an empty string. Revert to original
+      * without notifying the user.
+      */
+-    if (new_name[0] == '

-- 
mate-file-manager Debian package



More information about the pkg-mate-commits mailing list