[PATCH 4/4] Fix crash when clicking the window close button

David King amigadave at amigadave.com
Fri Mar 7 13:18:59 UTC 2014


---
 debian/patches/fix-close-button-crash.patch | 43 +++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 44 insertions(+)
 create mode 100644 debian/patches/fix-close-button-crash.patch

diff --git a/debian/patches/fix-close-button-crash.patch b/debian/patches/fix-close-button-crash.patch
new file mode 100644
index 0000000..37a577b
--- /dev/null
+++ b/debian/patches/fix-close-button-crash.patch
@@ -0,0 +1,43 @@
+Description: Fix crash when clicking the window close button
+Origin: upstream, https://git.gnome.org/browse/easytag/patch/?id=5442958d1ea34a992007bbb2bc047a9a5515387d
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=725568
+Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1071563
+Applied-Upstream: 2.1.11, https://git.gnome.org/browse/easytag/commit/?id=5442958d1ea34a992007bbb2bc047a9a5515387d
+From: David King <amigadave at amigadave.com>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+diff --git a/src/easytag.c b/src/easytag.c
+index 29eeb82..7f6ecc7 100644
+--- a/src/easytag.c
++++ b/src/easytag.c
+@@ -156,6 +156,17 @@ static gboolean et_tag_field_on_key_press_event (GtkEntry *entry,
+                                                  GdkEventKey *event,
+                                                  gpointer user_data);
+ 
++static gboolean
++on_main_window_delete_event (GtkWidget *window,
++                             GdkEvent *event,
++                             gpointer user_data)
++{
++    Quit_MainWindow ();
++
++    /* Handled the event, so stop propagation. */
++    return TRUE;
++}
++
+ /*
+  * common_init:
+  * @application: the application
+@@ -225,8 +236,8 @@ common_init (GApplication *application)
+     // This part is needed to set correctly the position of handle panes
+     gtk_window_set_default_size(GTK_WINDOW(MainWindow),MAIN_WINDOW_WIDTH,MAIN_WINDOW_HEIGHT);
+ 
+-    g_signal_connect(G_OBJECT(MainWindow),"delete_event",G_CALLBACK(Quit_MainWindow),NULL);
+-    g_signal_connect(G_OBJECT(MainWindow),"destroy",G_CALLBACK(Quit_MainWindow),NULL);
++    g_signal_connect (MainWindow, "delete-event",
++                      G_CALLBACK (on_main_window_delete_event), NULL);
+ 
+     /* Minimised window icon */
+     gtk_widget_realize(MainWindow);
+--
+cgit v0.9.2
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..4280d60 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-close-button-crash.patch
-- 
1.8.5.3




More information about the pkg-multimedia-maintainers mailing list