From faa1047dd911a3de51604e2abc47ea61fab2345a Mon Sep 17 00:00:00 2001 From: Jeremy Messenger Date: Thu, 18 Jan 2007 22:37:11 +0000 Subject: Fix the gtk2 dnd implementation broken, see more details in the bugzilla. This patch[1] was created by Matthias Clasen . This bug was started to reproduce with least 2.10.7 version of gtk2. PR: ports/107689 Reported by: a few users Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=355248 https://bugzilla.mozilla.org/show_bug.cgi?id=367203 [1] http://bugzilla.gnome.org/show_bug.cgi?id=394525 --- mail/thunderbird-esr/Makefile | 1 + .../files/patch-widget_src_gtk2_nsDragService.cpp | 18 ++++++++++++++++++ mail/thunderbird/Makefile | 1 + .../files/patch-widget_src_gtk2_nsDragService.cpp | 18 ++++++++++++++++++ mail/thunderbird3/Makefile | 1 + .../files/patch-widget_src_gtk2_nsDragService.cpp | 18 ++++++++++++++++++ 6 files changed, 57 insertions(+) create mode 100644 mail/thunderbird-esr/files/patch-widget_src_gtk2_nsDragService.cpp create mode 100644 mail/thunderbird/files/patch-widget_src_gtk2_nsDragService.cpp create mode 100644 mail/thunderbird3/files/patch-widget_src_gtk2_nsDragService.cpp (limited to 'mail') diff --git a/mail/thunderbird-esr/Makefile b/mail/thunderbird-esr/Makefile index 87999415623c..acd11e267ec5 100644 --- a/mail/thunderbird-esr/Makefile +++ b/mail/thunderbird-esr/Makefile @@ -8,6 +8,7 @@ PORTNAME= thunderbird DISTVERSION= 1.5.0.9 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED} MASTER_SITE_SUBDIR= thunderbird/releases/${DISTVERSION}/source diff --git a/mail/thunderbird-esr/files/patch-widget_src_gtk2_nsDragService.cpp b/mail/thunderbird-esr/files/patch-widget_src_gtk2_nsDragService.cpp new file mode 100644 index 000000000000..df9abaef67cc --- /dev/null +++ b/mail/thunderbird-esr/files/patch-widget_src_gtk2_nsDragService.cpp @@ -0,0 +1,18 @@ +--- widget/src/gtk2/nsDragService.cpp.nograb 2007-01-16 21:26:49.000000000 -0500 ++++ widget/src/gtk2/nsDragService.cpp 2007-01-16 21:27:04.000000000 -0500 +@@ -799,7 +799,6 @@ + void + nsDragService::GetTargetDragData(GdkAtom aFlavor) + { +- gtk_grab_add(mHiddenWidget); + PR_LOG(sDragLm, PR_LOG_DEBUG, ("getting data flavor %d\n", aFlavor)); + PR_LOG(sDragLm, PR_LOG_DEBUG, ("mLastWidget is %p and mLastContext is %p\n", + mTargetWidget, mTargetDragContext)); +@@ -817,7 +816,6 @@ + gtk_main_iteration(); + } + PR_LOG(sDragLm, PR_LOG_DEBUG, ("finished inner iteration\n")); +- gtk_grab_remove(mHiddenWidget); + } + + void diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile index 87999415623c..acd11e267ec5 100644 --- a/mail/thunderbird/Makefile +++ b/mail/thunderbird/Makefile @@ -8,6 +8,7 @@ PORTNAME= thunderbird DISTVERSION= 1.5.0.9 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED} MASTER_SITE_SUBDIR= thunderbird/releases/${DISTVERSION}/source diff --git a/mail/thunderbird/files/patch-widget_src_gtk2_nsDragService.cpp b/mail/thunderbird/files/patch-widget_src_gtk2_nsDragService.cpp new file mode 100644 index 000000000000..df9abaef67cc --- /dev/null +++ b/mail/thunderbird/files/patch-widget_src_gtk2_nsDragService.cpp @@ -0,0 +1,18 @@ +--- widget/src/gtk2/nsDragService.cpp.nograb 2007-01-16 21:26:49.000000000 -0500 ++++ widget/src/gtk2/nsDragService.cpp 2007-01-16 21:27:04.000000000 -0500 +@@ -799,7 +799,6 @@ + void + nsDragService::GetTargetDragData(GdkAtom aFlavor) + { +- gtk_grab_add(mHiddenWidget); + PR_LOG(sDragLm, PR_LOG_DEBUG, ("getting data flavor %d\n", aFlavor)); + PR_LOG(sDragLm, PR_LOG_DEBUG, ("mLastWidget is %p and mLastContext is %p\n", + mTargetWidget, mTargetDragContext)); +@@ -817,7 +816,6 @@ + gtk_main_iteration(); + } + PR_LOG(sDragLm, PR_LOG_DEBUG, ("finished inner iteration\n")); +- gtk_grab_remove(mHiddenWidget); + } + + void diff --git a/mail/thunderbird3/Makefile b/mail/thunderbird3/Makefile index 87999415623c..acd11e267ec5 100644 --- a/mail/thunderbird3/Makefile +++ b/mail/thunderbird3/Makefile @@ -8,6 +8,7 @@ PORTNAME= thunderbird DISTVERSION= 1.5.0.9 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED} MASTER_SITE_SUBDIR= thunderbird/releases/${DISTVERSION}/source diff --git a/mail/thunderbird3/files/patch-widget_src_gtk2_nsDragService.cpp b/mail/thunderbird3/files/patch-widget_src_gtk2_nsDragService.cpp new file mode 100644 index 000000000000..df9abaef67cc --- /dev/null +++ b/mail/thunderbird3/files/patch-widget_src_gtk2_nsDragService.cpp @@ -0,0 +1,18 @@ +--- widget/src/gtk2/nsDragService.cpp.nograb 2007-01-16 21:26:49.000000000 -0500 ++++ widget/src/gtk2/nsDragService.cpp 2007-01-16 21:27:04.000000000 -0500 +@@ -799,7 +799,6 @@ + void + nsDragService::GetTargetDragData(GdkAtom aFlavor) + { +- gtk_grab_add(mHiddenWidget); + PR_LOG(sDragLm, PR_LOG_DEBUG, ("getting data flavor %d\n", aFlavor)); + PR_LOG(sDragLm, PR_LOG_DEBUG, ("mLastWidget is %p and mLastContext is %p\n", + mTargetWidget, mTargetDragContext)); +@@ -817,7 +816,6 @@ + gtk_main_iteration(); + } + PR_LOG(sDragLm, PR_LOG_DEBUG, ("finished inner iteration\n")); +- gtk_grab_remove(mHiddenWidget); + } + + void -- cgit v1.2.3