]> spindle.queued.net Git - midori/commitdiff
* debian/patches:
authorYves-Alexis Perez <corsac@debian.org>
Tue, 6 Sep 2011 07:30:31 +0000 (09:30 +0200)
committerYves-Alexis Perez <corsac@debian.org>
Tue, 6 Sep 2011 07:30:31 +0000 (09:30 +0200)
  - 0001-Fix-for-Bug-819688 added, correctly restore tab panel when needed.

debian/changelog
debian/patches/0001-Fix-for-Bug-819688.patch [new file with mode: 0644]
debian/patches/series

index 64d574933935e4b321b3dcb8b566cd96430a701e..5d4f10626b594fbfd2d5b478b39d59cb038dda6c 100644 (file)
@@ -1,3 +1,10 @@
+midori (0.4.0-2) UNRELEASED; urgency=low
+
+  * debian/patches:
+    - 0001-Fix-for-Bug-819688 added, correctly restore tab panel when needed.
+
+ -- Yves-Alexis Perez <corsac@debian.org>  Mon, 05 Sep 2011 22:42:34 +0200
+
 midori (0.4.0-1) unstable; urgency=low
 
   * New upstream release.
diff --git a/debian/patches/0001-Fix-for-Bug-819688.patch b/debian/patches/0001-Fix-for-Bug-819688.patch
new file mode 100644 (file)
index 0000000..ba92912
--- /dev/null
@@ -0,0 +1,42 @@
+From b81370bd81f782836bbabdcca4cf7cb219ed53cf Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andr=C3=A9=20St=C3=B6sel?= <andre@stoesel.de>
+Date: Mon, 5 Sep 2011 18:02:42 +0200
+Subject: [PATCH] Fix for Bug #819688
+
+---
+ midori/midori-panel.c |    5 ++++-
+ 1 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/midori/midori-panel.c b/midori/midori-panel.c
+index a7abc81..5d6dad0 100644
+--- a/midori/midori-panel.c
++++ b/midori/midori-panel.c
+@@ -13,6 +13,8 @@
+ #include "midori-view.h"
++#include "midori-browser.h"
++
+ #include "marshal.h"
+ #include "sokoke.h"
+@@ -588,6 +590,7 @@ static void
+ midori_panel_viewable_destroy_cb (GtkWidget*   viewable,
+                                   MidoriPanel* panel)
+ {
++    MidoriBrowser* browser = midori_browser_get_for_widget ( GTK_WIDGET (panel));
+     gint n_pages;
+     gchar* action_name;
+     GtkAction* action;
+@@ -601,7 +604,7 @@ midori_panel_viewable_destroy_cb (GtkWidget*   viewable,
+         viewable, midori_panel_viewable_destroy_cb, panel);
+     n_pages = midori_panel_get_n_pages (panel);
+-    if (n_pages > 0)
++    if (n_pages > 0 && browser && !g_object_get_data (G_OBJECT (browser), "midori-browser-destroyed"))
+         midori_panel_set_current_page (panel, (n_pages-1 > i) ? i : n_pages - 1);
+     action_name = g_strconcat ("PanelPage",
+-- 
+1.7.6.1
+
index 5367257f30a59fcc1e88dd37ed150700a839a778..f2372683e7714f854f5f7f09c2a3dbce5a8212a5 100644 (file)
@@ -1 +1,2 @@
 add-debian-searches
+0001-Fix-for-Bug-819688.patch