summaryrefslogtreecommitdiff
path: root/community/midori
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-31 01:35:35 -0700
committerroot <root@rshg054.dnsready.net>2012-10-31 01:35:35 -0700
commit5827948456201df72a1bd73e87977c569129fb27 (patch)
tree4842639ddc958690e68f74c496ea60844200450b /community/midori
parent455295fdb5009a8cd7b033a93e01f7450fd3087b (diff)
Wed Oct 31 01:34:59 PDT 2012
Diffstat (limited to 'community/midori')
-rw-r--r--community/midori/PKGBUILD17
-rw-r--r--community/midori/fix-copying.patch63
2 files changed, 74 insertions, 6 deletions
diff --git a/community/midori/PKGBUILD b/community/midori/PKGBUILD
index 5a49b7dce..fd40b3e4e 100644
--- a/community/midori/PKGBUILD
+++ b/community/midori/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 76712 2012-09-27 13:47:42Z bpiotrowski $
+# $Id: PKGBUILD 79131 2012-10-30 23:51:10Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
@@ -8,7 +8,7 @@
pkgname=midori
pkgver=0.4.7
-pkgrel=2
+pkgrel=3
pkgdesc='Lightweight web browser based on Gtk WebKit'
arch=('x86_64' 'i686')
url='http://www.twotoasts.de/index.php?/pages/midori_summary.html'
@@ -19,15 +19,20 @@ makedepends=('libxml2' 'intltool' 'gtk-doc' 'librsvg' 'python2>=2.7.1' 'vala')
optdepends=('gstreamer0.10-ugly-plugins: HTML5 videos support')
options=('!emptydirs')
source=(http://archive.xfce.org/src/apps/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2
- 0.4.7-private-mode.patch)
+ 0.4.7-private-mode.patch
+ fix-copying.patch)
md5sums=('06db7b88a41e9b2265728960d5e98f35'
- 'b2f21a853038662fd0e6c2274ed9dfb7')
+ 'b2f21a853038662fd0e6c2274ed9dfb7'
+ '4bf3a0af4edc9ad6c4d46fc9676d9eb0')
build() {
cd $srcdir/$pkgname-$pkgver
- # fs#31641
- patch -Np1 -i $srcdir/0.4.7-private-mode.patch
+ # FS#31641
+ patch -s -Np1 -i ../0.4.7-private-mode.patch
+
+ # FS#32229
+ patch -s -Np1 -i ../fix-copying.patch > /dev/null || true
# python2
export PYTHON=/usr/bin/python2
diff --git a/community/midori/fix-copying.patch b/community/midori/fix-copying.patch
new file mode 100644
index 000000000..ab3581900
--- /dev/null
+++ b/community/midori/fix-copying.patch
@@ -0,0 +1,63 @@
+diff --git a/midori/midori-browser.c b/midori/midori-browser.c
+index 28aca95..b33e2e4 100644
+--- a/midori/midori-browser.c
++++ b/midori/midori-browser.c
+@@ -1041,7 +1041,7 @@ midori_browser_save_uri (MidoriBrowser* browser,
+ GtkWidget* dialog;
+ const gchar* title = midori_view_get_display_title (view);
+ gchar* filename;
+- GList* resources = midori_view_get_subresources (view);
++ GList* resources = midori_view_get_resources (view);
+ gboolean file_only = TRUE;
+ GtkWidget* checkbox = NULL;
+
+diff --git a/midori/midori-view.c b/midori/midori-view.c
+index 37cc78f..2c71f55 100644
+--- a/midori/midori-view.c
++++ b/midori/midori-view.c
+@@ -1993,21 +1993,22 @@ midori_web_view_menu_image_new_tab_activate_cb (GtkWidget* widget,
+ }
+
+ GList*
+-midori_view_get_subresources (MidoriView* view)
++midori_view_get_resources (MidoriView* view)
+ {
+ WebKitWebView* web_view = WEBKIT_WEB_VIEW (view->web_view);
+ WebKitWebFrame* frame = webkit_web_view_get_main_frame (web_view);
+ WebKitWebDataSource* data_source = webkit_web_frame_get_data_source (frame);
+- return webkit_web_data_source_get_subresources (data_source);
++ GList* resources = webkit_web_data_source_get_subresources (data_source);
++ return g_list_prepend (resources, webkit_web_data_source_get_main_resource (data_source));
+ }
+
+ static GString*
+ midori_view_get_data_for_uri (MidoriView* view,
+ const gchar* uri)
+ {
+- GList* resources = midori_view_get_subresources (view);
++ GList* resources = midori_view_get_resources (view);
+ GList* list;
+- GString* result;
++ GString* result = NULL;
+
+ for (list = resources; list; list = g_list_next (list))
+ {
+@@ -2032,7 +2033,8 @@ midori_view_clipboard_get_image_cb (GtkClipboard* clipboard,
+ MidoriView* view = MIDORI_VIEW (g_object_get_data (user_data, "view"));
+ WebKitHitTestResult* hit_test = user_data;
+ gchar* uri = katze_object_get_string (hit_test, "image-uri");
+- /* if (gtk_selection_data_targets_include_image (selection_data, TRUE)) */
++
++ if (gtk_targets_include_image(&selection_data->target, 1, TRUE))
+ {
+ GString* data = midori_view_get_data_for_uri (view, uri);
+ if (data != NULL)
+@@ -2052,7 +2054,7 @@ midori_view_clipboard_get_image_cb (GtkClipboard* clipboard,
+ else
+ g_warn_if_reached ();
+ }
+- /* if (gtk_selection_data_targets_include_text (selection_data)) */
++ if (gtk_targets_include_text(&selection_data->target, 1))
+ gtk_selection_data_set_text (selection_data, uri, -1);
+ g_free (uri);
+ }