[claws-mail] 3.7.8-6 fix for possible mouse wheel problems (#661766)
Andreas Bierfert
awjb at fedoraproject.org
Tue Feb 22 20:52:56 UTC 2011
commit dccd500d8bccba9d07ca5255ecde77aab9e0a094
Author: Andreas Bierfert <andreas.bierfert at lowlatency.de>
Date: Tue Feb 22 21:52:46 2011 +0100
3.7.8-6
fix for possible mouse wheel problems (#661766)
claws-mail-3.7.8-cvs14.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
claws-mail.spec | 12 ++++++++++--
2 files changed, 52 insertions(+), 2 deletions(-)
---
diff --git a/claws-mail-3.7.8-cvs14.patch b/claws-mail-3.7.8-cvs14.patch
new file mode 100644
index 0000000..ba08324
--- /dev/null
+++ b/claws-mail-3.7.8-cvs14.patch
@@ -0,0 +1,42 @@
+--- claws-mail-3.7.8-orig/src/compose.c 2010-11-25 19:57:48.000000000 +0100
++++ claws-mail-3.7.8-orig/src/compose.c 2011-02-22 19:22:38.579964890 +0100
+@@ -499,7 +499,7 @@
+ gboolean followup_and_reply_to,
+ const gchar *body);
+
+-static gboolean compose_headerentry_changed_cb (GtkWidget *entry,
++static void compose_headerentry_changed_cb (GtkWidget *entry,
+ ComposeHeaderEntry *headerentry);
+ static gboolean compose_headerentry_key_press_event_cb(GtkWidget *entry,
+ GdkEventKey *event,
+@@ -10762,7 +10762,15 @@
+ return FALSE;
+ }
+
+-static gboolean compose_headerentry_changed_cb(GtkWidget *entry,
++static gboolean scroll_postpone(gpointer data)
++{
++ Compose *compose = (Compose *)data;
++ GTK_EVENTS_FLUSH();
++ compose_show_first_last_header(compose, FALSE);
++ return FALSE;
++}
++
++static void compose_headerentry_changed_cb(GtkWidget *entry,
+ ComposeHeaderEntry *headerentry)
+ {
+ if (strlen(gtk_entry_get_text(GTK_ENTRY(entry))) != 0) {
+@@ -10771,12 +10779,8 @@
+ (G_OBJECT(entry), G_SIGNAL_MATCH_DATA,
+ 0, 0, NULL, NULL, headerentry);
+
+- /* Automatically scroll down */
+- GTK_EVENTS_FLUSH();
+- compose_show_first_last_header(headerentry->compose, FALSE);
+-
++ g_timeout_add(0, scroll_postpone, headerentry->compose);
+ }
+- return FALSE;
+ }
+
+ static void compose_show_first_last_header(Compose *compose, gboolean show_first)
diff --git a/claws-mail.spec b/claws-mail.spec
index 7153242..f30e783 100644
--- a/claws-mail.spec
+++ b/claws-mail.spec
@@ -1,12 +1,14 @@
Name: claws-mail
Version: 3.7.8
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: The extended version of Sylpheed
Group: Applications/Internet
License: GPLv3+
URL: http://claws-mail.org
Source0: http://downloads.sourceforge.net/sylpheed-claws/%{name}-%{version}.tar.bz2
-
+# bugfixes
+# 661766 claws-mail-3.7.8cvs14
+Patch100: %{name}-3.7.8-cvs14.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: flex, bison
BuildRequires: glib2-devel >= 2.6.2
@@ -129,6 +131,8 @@ mails, verify signatures or sign and encrypt your own mails.
%prep
%setup -q
+%patch100 -p1 -b.cvs14
+
%build
%configure --enable-ipv6 \
--enable-ldap --enable-jpilot \
@@ -237,6 +241,10 @@ touch -r NEWS ${RPM_BUILD_ROOT}%{_includedir}/%{name}/config.h
%{_libdir}/claws-mail/plugins/smime.deps
%changelog
+* Tue Feb 22 2011 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+- 3.7.8-6
+- fix for possible mouse wheel problems (#661766)
+
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.7.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
More information about the scm-commits
mailing list