2009-10-03 [colin] 3.7.2cvs42
authorColin Leroy <colin@colino.net>
Sat, 3 Oct 2009 19:27:40 +0000 (19:27 +0000)
committerColin Leroy <colin@colino.net>
Sat, 3 Oct 2009 19:27:40 +0000 (19:27 +0000)
* src/mimeview.c
* src/noticeview.c
* src/gtk/gtkcmclist.c
* src/gtk/gtkvscrollbutton.c
* src/gtk/logwindow.c
GTK+ 2.18 fixes:
Fix bug 2008, 'Claws-Mail doesn't refresh after deletion'
Fix bug 2009, 'Incorrect pointer representation with GTK+2.18'
Fix warning at start

ChangeLog
PATCHSETS
configure.ac
src/gtk/gtkcmclist.c
src/gtk/gtkvscrollbutton.c
src/gtk/logwindow.c
src/mimeview.c
src/noticeview.c

index 8c03f15..6577579 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2009-10-03 [colin]     3.7.2cvs42
+
+       * src/mimeview.c
+       * src/noticeview.c
+       * src/gtk/gtkcmclist.c
+       * src/gtk/gtkvscrollbutton.c
+       * src/gtk/logwindow.c
+               GTK+ 2.18 fixes:
+               Fix bug 2008, 'Claws-Mail doesn't refresh after deletion'
+               Fix bug 2009, 'Incorrect pointer representation with GTK+2.18'
+               Fix warning at start
+
 2009-09-28 [colin]     3.7.2cvs41
 
        * src/matcher.c
 2009-09-28 [colin]     3.7.2cvs41
 
        * src/matcher.c
index 7e45168..b6be547 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.654.2.3932 -r 1.654.2.3933 configure.ac;  ) > 3.7.2cvs39.patchset
 ( cvs diff -u -r 1.1.2.60 -r 1.1.2.61 src/prefs_summaries.c;  cvs diff -u -r 1.9.2.28 -r 1.9.2.29 src/gtk/sslcertwindow.c;  ) > 3.7.2cvs40.patchset
 ( cvs diff -u -r 1.75.2.66 -r 1.75.2.67 src/matcher.c;  cvs diff -u -r 1.83.2.155 -r 1.83.2.156 src/mimeview.c;  cvs diff -u -r 1.52.2.77 -r 1.52.2.78 src/prefs_folder_item.c;  ) > 3.7.2cvs41.patchset
 ( cvs diff -u -r 1.654.2.3932 -r 1.654.2.3933 configure.ac;  ) > 3.7.2cvs39.patchset
 ( cvs diff -u -r 1.1.2.60 -r 1.1.2.61 src/prefs_summaries.c;  cvs diff -u -r 1.9.2.28 -r 1.9.2.29 src/gtk/sslcertwindow.c;  ) > 3.7.2cvs40.patchset
 ( cvs diff -u -r 1.75.2.66 -r 1.75.2.67 src/matcher.c;  cvs diff -u -r 1.83.2.155 -r 1.83.2.156 src/mimeview.c;  cvs diff -u -r 1.52.2.77 -r 1.52.2.78 src/prefs_folder_item.c;  ) > 3.7.2cvs41.patchset
+( cvs diff -u -r 1.83.2.156 -r 1.83.2.157 src/mimeview.c;  cvs diff -u -r 1.5.2.23 -r 1.5.2.24 src/noticeview.c;  cvs diff -u -r 1.1.2.9 -r 1.1.2.10 src/gtk/gtkcmclist.c;  cvs diff -u -r 1.5.2.17 -r 1.5.2.18 src/gtk/gtkvscrollbutton.c;  cvs diff -u -r 1.1.4.35 -r 1.1.4.36 src/gtk/logwindow.c;  ) > 3.7.2cvs42.patchset
index acf5261..18fc6cc 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=7
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=41
+EXTRA_VERSION=42
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index f4f1f68..11e10a0 100644 (file)
@@ -6001,9 +6001,14 @@ draw_rows (GtkCMCList     *clist,
       i++;
     }
 
       i++;
     }
 
-  if (!area)
-    gdk_window_clear_area (clist->clist_window, 0,
-                          ROW_TOP_YPIXEL (clist, i), 0, 0);
+  if (!area) {
+    int w, h, y;
+    gdk_drawable_get_size (GDK_DRAWABLE (clist->clist_window), &w, &h);
+    y = ROW_TOP_YPIXEL (clist, i);
+    gdk_window_clear_area (clist->clist_window,
+                           0, y,
+                           w, h - y);
+  }
 }
 
 static void                          
 }
 
 static void                          
index d519a97..33e49df 100644 (file)
@@ -161,16 +161,12 @@ static void gtk_vscrollbutton_init(GtkVScrollbutton *scrollbutton)
     gtk_widget_show(scrollbutton->downbutton);
     gtk_widget_show(scrollbutton->upbutton);
 
     gtk_widget_show(scrollbutton->downbutton);
     gtk_widget_show(scrollbutton->upbutton);
 
-    g_signal_connect(G_OBJECT(scrollbutton->upbutton), "visibility-notify-event",
-                    G_CALLBACK(vscroll_visi_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->upbutton), "motion-notify-event",
                     G_CALLBACK(vscroll_visi_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->upbutton), "leave-notify-event",
                     G_CALLBACK(vscroll_leave_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->upbutton), "enter-notify-event",
                     G_CALLBACK(vscroll_enter_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->upbutton), "motion-notify-event",
                     G_CALLBACK(vscroll_visi_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->upbutton), "leave-notify-event",
                     G_CALLBACK(vscroll_leave_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->upbutton), "enter-notify-event",
                     G_CALLBACK(vscroll_enter_notify), NULL);
-    g_signal_connect(G_OBJECT(scrollbutton->downbutton), "visibility-notify-event",
-                    G_CALLBACK(vscroll_visi_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->downbutton), "motion-notify-event",
                     G_CALLBACK(vscroll_visi_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->downbutton), "leave-notify-event",
     g_signal_connect(G_OBJECT(scrollbutton->downbutton), "motion-notify-event",
                     G_CALLBACK(vscroll_visi_notify), NULL);
     g_signal_connect(G_OBJECT(scrollbutton->downbutton), "leave-notify-event",
index ab25472..b045245 100644 (file)
@@ -147,8 +147,6 @@ LogWindow *log_window_create(LogInstance instance)
        logwin->text = text;
        logwin->hook_id = hooks_register_hook(get_log_hook(instance), log_window_append, logwin);
 
        logwin->text = text;
        logwin->hook_id = hooks_register_hook(get_log_hook(instance), log_window_append, logwin);
 
-       gtk_text_view_scroll_mark_onscreen(GTK_TEXT_VIEW(text), logwin->end_mark);
-
        return logwin;
 }
 
        return logwin;
 }
 
index 6ab9745..de500fb 100644 (file)
@@ -321,8 +321,6 @@ MimeView *mimeview_create(MainWindow *mainwin)
        mime_toggle = gtk_event_box_new();
        gtk_event_box_set_visible_window(GTK_EVENT_BOX(mime_toggle), FALSE);
 
        mime_toggle = gtk_event_box_new();
        gtk_event_box_set_visible_window(GTK_EVENT_BOX(mime_toggle), FALSE);
 
-       g_signal_connect(G_OBJECT(mime_toggle), "visibility-notify-event",
-                        G_CALLBACK(mimeview_visi_notify), mimeview);
        g_signal_connect(G_OBJECT(mime_toggle), "motion-notify-event",
                         G_CALLBACK(mimeview_visi_notify), mimeview);
        g_signal_connect(G_OBJECT(mime_toggle), "leave-notify-event",
        g_signal_connect(G_OBJECT(mime_toggle), "motion-notify-event",
                         G_CALLBACK(mimeview_visi_notify), mimeview);
        g_signal_connect(G_OBJECT(mime_toggle), "leave-notify-event",
@@ -2219,8 +2217,6 @@ static void icon_list_append_icon (MimeView *mimeview, MimeInfo *mimeinfo)
        mimeview->icon_count++;
        button = gtk_event_box_new();
 
        mimeview->icon_count++;
        button = gtk_event_box_new();
 
-       g_signal_connect(G_OBJECT(button), "visibility-notify-event",
-                        G_CALLBACK(mimeview_visi_notify), mimeview);
        g_signal_connect(G_OBJECT(button), "motion-notify-event",
                         G_CALLBACK(mimeview_visi_notify), mimeview);
        g_signal_connect(G_OBJECT(button), "leave-notify-event",
        g_signal_connect(G_OBJECT(button), "motion-notify-event",
                         G_CALLBACK(mimeview_visi_notify), mimeview);
        g_signal_connect(G_OBJECT(button), "leave-notify-event",
index 8aa726c..907bdc6 100644 (file)
@@ -97,8 +97,6 @@ NoticeView *noticeview_create(MainWindow *mainwin)
        g_signal_connect(G_OBJECT(evtbox), "button-press-event", 
                         G_CALLBACK(noticeview_icon_pressed),
                         (gpointer) noticeview);
        g_signal_connect(G_OBJECT(evtbox), "button-press-event", 
                         G_CALLBACK(noticeview_icon_pressed),
                         (gpointer) noticeview);
-       g_signal_connect(G_OBJECT(evtbox), "visibility-notify-event",
-                        G_CALLBACK(noticeview_visi_notify), noticeview);
        g_signal_connect(G_OBJECT(evtbox), "motion-notify-event",
                         G_CALLBACK(noticeview_visi_notify), noticeview);
        g_signal_connect(G_OBJECT(evtbox), "leave-notify-event",
        g_signal_connect(G_OBJECT(evtbox), "motion-notify-event",
                         G_CALLBACK(noticeview_visi_notify), noticeview);
        g_signal_connect(G_OBJECT(evtbox), "leave-notify-event",