[Commits] [SCM] claws branch, master, updated. 3.10.0-25-g26fb624

colin at claws-mail.org colin at claws-mail.org
Sat May 31 09:41:42 CEST 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  26fb6244adf983f85b560858cb7c68e8164ae67d (commit)
      from  71fd3cd97ac0d9b93f74b231110fea439417efac (commit)


- Log -----------------------------------------------------------------
commit 26fb6244adf983f85b560858cb7c68e8164ae67d
Author: Colin Leroy <colin at colino.net>
Date:   Sat May 31 09:41:13 2014 +0200

    Fix spacing in Folderview if the font is far from the system font

diff --git a/src/folderview.c b/src/folderview.c
index 4f0be44..a52ce3f 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -620,6 +620,7 @@ void folderview_init(FolderView *folderview)
 {
 	GtkWidget *ctree = folderview->ctree;
 	GdkColor gdk_color;
+	PangoFontDescription *normal_font;
 
 	stock_pixbuf_gdk(ctree, STOCK_PIXMAP_INBOX_CLOSE, &inboxxpm);
 	stock_pixbuf_gdk(ctree, STOCK_PIXMAP_INBOX_CLOSE_HRM, &inboxhrmxpm);
@@ -667,7 +668,14 @@ void folderview_init(FolderView *folderview)
 	stock_pixbuf_gdk(ctree, STOCK_PIXMAP_QUEUE_OPEN_HRM_MARK, &m_queueopenhrmxpm);
 	stock_pixbuf_gdk(ctree, STOCK_PIXMAP_DRAFTS_CLOSE_MARK, &m_draftsxpm);
 	stock_pixbuf_gdk(ctree, STOCK_PIXMAP_DRAFTS_OPEN_MARK, &m_draftsopenxpm);
-			
+
+	normal_font = pango_font_description_from_string(NORMAL_FONT);
+	if (normal_font) {
+		gtk_widget_modify_font(ctree, normal_font);
+		pango_font_description_free(normal_font);
+	}
+	gtk_cmclist_set_row_height(GTK_CMCLIST(ctree), 0);
+
 	if (!normal_style) {
 		PangoFontDescription *font_desc;
 		normal_style = gtk_style_copy(gtk_widget_get_style(ctree));

-----------------------------------------------------------------------

Summary of changes:
 src/folderview.c |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list