[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#767910: release.debian.org: unblock: glabels/3.0.1-4.1



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock

Please unblock glabels.

Version 3.0.1-4.1 fixes #763769 (glabels exists with "Abort" when
creating a new document).

Thank you.

Cheers,
-Hilko
diff -Nru glabels-3.0.1/debian/changelog glabels-3.0.1/debian/changelog
--- glabels-3.0.1/debian/changelog	2013-11-10 23:59:46.000000000 +0100
+++ glabels-3.0.1/debian/changelog	2014-10-31 10:02:54.000000000 +0100
@@ -1,3 +1,16 @@
+glabels (3.0.1-4.1) unstable; urgency=medium
+
+  [ Hilko Bengen ]
+  * Non-maintainer upload.
+
+  [ gregor herrmann ]
+  * Fix "glabels exists with "Abort" when creating a new document".
+    Add patches for two commits (66c007, 3700cd8) from upstream git for Gtk+
+    3.14 compatibility.
+    (Closes: #763769)
+
+ -- Hilko Bengen <bengen@debian.org>  Fri, 31 Oct 2014 10:00:59 +0100
+
 glabels (3.0.1-4) unstable; urgency=low
 
   * Upload to unstable as evolution-data-server 3.8 has arrived there
diff -Nru glabels-3.0.1/debian/patches/0006-Added-dummy-window-as-parent-in-warning-and-critical.patch glabels-3.0.1/debian/patches/0006-Added-dummy-window-as-parent-in-warning-and-critical.patch
--- glabels-3.0.1/debian/patches/0006-Added-dummy-window-as-parent-in-warning-and-critical.patch	1970-01-01 01:00:00.000000000 +0100
+++ glabels-3.0.1/debian/patches/0006-Added-dummy-window-as-parent-in-warning-and-critical.patch	2014-10-31 10:02:54.000000000 +0100
@@ -0,0 +1,59 @@
+From b66c0076908a706235af21b2c1d3ef04a6ba1f7f Mon Sep 17 00:00:00 2001
+From: Jim Evins <evins@snaught.com>
+Date: Thu, 23 Oct 2014 20:45:12 -0400
+Subject: [PATCH] Added dummy window as parent in warning and critical error
+ handlers.
+
+In gtk 3.14, creating a message dialog without a parent window
+causes a crash.  Unfortunately this causes the original error or
+warning message from being seen by the user.
+---
+ src/critical-error-handler.c | 4 +++-
+ src/warning-handler.c        | 5 ++++-
+ 2 files changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/src/critical-error-handler.c b/src/critical-error-handler.c
+index 0d9fed1..d7ab99d 100644
+--- a/src/critical-error-handler.c
++++ b/src/critical-error-handler.c
+@@ -61,9 +61,11 @@ critical_error_handler (const gchar    *log_domain,
+                         const gchar    *message,
+                         gpointer        user_data)
+ {
++        GtkWidget *dummy_window;
+         GtkWidget *dialog;
+ 
+-        dialog = gtk_message_dialog_new (NULL,
++        dummy_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
++        dialog = gtk_message_dialog_new (GTK_WINDOW (dummy_window),
+                                          GTK_DIALOG_MODAL,
+                                          GTK_MESSAGE_ERROR,
+                                          GTK_BUTTONS_NONE,
+diff --git a/src/warning-handler.c b/src/warning-handler.c
+index 8f5f1b7..a7cb5f8 100644
+--- a/src/warning-handler.c
++++ b/src/warning-handler.c
+@@ -60,9 +60,11 @@ warning_handler (const gchar    *log_domain,
+                  const gchar    *message,
+                  gpointer        user_data)
+ {
++        GtkWidget *dummy_window;
+         GtkWidget *dialog;
+ 
+-        dialog = gtk_message_dialog_new (NULL,
++        dummy_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
++        dialog = gtk_message_dialog_new (GTK_WINDOW (dummy_window),
+                                          GTK_DIALOG_MODAL,
+                                          GTK_MESSAGE_WARNING,
+                                          GTK_BUTTONS_CLOSE,
+@@ -73,6 +75,7 @@ warning_handler (const gchar    *log_domain,
+         gtk_dialog_run (GTK_DIALOG (dialog));
+ 
+ 	gtk_widget_destroy (GTK_WIDGET (dialog));
++        gtk_widget_destroy (GTK_WIDGET (dummy_window));
+ }
+ 
+ 
+-- 
+2.1.1
+
diff -Nru glabels-3.0.1/debian/patches/0007-Removed-obsolete-tab-hborder-property-from-media-sel.patch glabels-3.0.1/debian/patches/0007-Removed-obsolete-tab-hborder-property-from-media-sel.patch
--- glabels-3.0.1/debian/patches/0007-Removed-obsolete-tab-hborder-property-from-media-sel.patch	1970-01-01 01:00:00.000000000 +0100
+++ glabels-3.0.1/debian/patches/0007-Removed-obsolete-tab-hborder-property-from-media-sel.patch	2014-10-31 10:02:54.000000000 +0100
@@ -0,0 +1,28 @@
+From 3700cd8f40e429bb9a562533493a352fc40c3d4e Mon Sep 17 00:00:00 2001
+From: Jim Evins <evins@snaught.com>
+Date: Thu, 23 Oct 2014 20:57:06 -0400
+Subject: [PATCH 2/2] Removed obsolete tab-hborder property from media-select
+ UI file.
+
+Unfortunately, beginning with gtk 3.14, rather than ignoring this obsolete
+property, having it in a UI file is considered a critical error, thus crashing
+glabels on newer distributions.
+---
+ data/ui/media-select.ui | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/data/ui/media-select.ui b/data/ui/media-select.ui
+index 499ddbd..ee45ec0 100644
+--- a/data/ui/media-select.ui
++++ b/data/ui/media-select.ui
+@@ -18,7 +18,6 @@
+         <child>
+           <object class="GtkNotebook" id="notebook">
+             <property name="visible">True</property>
+-            <property name="tab_hborder">0</property>
+             <child>
+               <object class="GtkVBox" id="recent_tab_vbox">
+                 <property name="height_request">320</property>
+-- 
+2.1.1
+
diff -Nru glabels-3.0.1/debian/patches/series glabels-3.0.1/debian/patches/series
--- glabels-3.0.1/debian/patches/series	2013-11-10 23:59:46.000000000 +0100
+++ glabels-3.0.1/debian/patches/series	2014-10-31 10:03:53.000000000 +0100
@@ -3,3 +3,5 @@
 0003-Ignore-license.page.patch
 0004-unbreak-with-evolution-data-server-3.6.0.patch
 0005-fix-pl.po-encoding.diff
+0006-Added-dummy-window-as-parent-in-warning-and-critical.patch
+0007-Removed-obsolete-tab-hborder-property-from-media-sel.patch

Reply to: