Validate event
authorColin Leroy <colin@colino.net>
Fri, 12 Nov 2004 15:55:21 +0000 (15:55 +0000)
committerColin Leroy <colin@colino.net>
Fri, 12 Nov 2004 15:55:21 +0000 (15:55 +0000)
ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/textview.c

index 58fae2f86b136342172c04967cf655a62d7eb8de..dc7626a782cb1d86bf97a4a2cf15d42893bcf2bf 100644 (file)
@@ -1,3 +1,9 @@
+2004-11-12 [colin]     0.9.12cvs146.5
+
+       * src/textview.c
+               Validate event's origin on visibility notify
+               Patch by Alfons.
+
 2004-11-12 [paul]      0.9.12cvs146.4
 
        * src/exporthtml.c
index 2b5ccece6ccafce34da8693a6efbb0389dd8906c..82a152ce5c7ca853d2ea5426b07d5b90b61b95ba 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.65.2.17 -r 1.65.2.18 src/codeconv.c; ) > 0.9.12cvs146.2.patchset
 ( cvs diff -u -r 1.96.2.32 -r 1.96.2.33 src/textview.c; ) > 0.9.12cvs146.3.patchset
 ( cvs diff -u -r 1.5.2.2 -r 1.5.2.3 src/exporthtml.c; cvs diff -u -r 1.1.4.2 -r 1.1.4.3 src/exportldif.c; cvs diff -u -r 1.179.2.11 -r 1.179.2.12 src/imap.c; cvs diff -u -r 1.79.2.4 -r 1.79.2.5 src/mh.c; cvs diff -u -r 1.83.2.23 -r 1.83.2.24 src/mimeview.c; cvs diff -u -r 1.5.2.4 -r 1.5.2.5 src/prefs_spelling.c; cvs diff -u -r 1.3.2.8 -r 1.3.2.9 src/prefs_themes.c; ) > 0.9.12cvs146.4.patchset
+( cvs diff -u -r 1.96.2.33 -r 1.96.2.34 src/textview.c; ) > 0.9.12cvs146.5.patchset
index da6ba6dc00a10dff096ead52311cf2eaf41898fa..0b2d476c8ccf7e958a4f7768325cf378b4a7111e 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=146
 EXTRA_RELEASE=
-EXTRA_GTK2_VERSION=.4
+EXTRA_GTK2_VERSION=.5
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
index 550f398ebf7f4844722a9fd048fc8bd0f2fbf1c6..9658e8f8cc4c9b225c41c5360e47fac0e64486fc 100644 (file)
@@ -1912,7 +1912,15 @@ static gboolean textview_visibility_notify(GtkWidget *widget,
                                           TextView *textview)
 {
        gint wx, wy;
-  
+       GdkWindow *window;
+
+       window = gtk_text_view_get_window(GTK_TEXT_VIEW(widget),
+                                         GTK_TEXT_WINDOW_TEXT);
+
+       /* check if occurred for the text window part */
+       if (window != event->window)
+               return FALSE;
+       
        gdk_window_get_pointer(widget->window, &wx, &wy, NULL);
        textview_uri_update(textview, wx, wy);