* src/maemo/modest-msg-edit-window.c:
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 29 Jun 2007 12:46:44 +0000 (12:46 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 29 Jun 2007 12:46:44 +0000 (12:46 +0000)
        * Now the font size toolbutton always get the default font face
          (it was getting the default font, but then it was replaced
          with Serif on first font size change).

pmo-trunk-r2496

src/maemo/modest-msg-edit-window.c

index a4a9f02..384c7cd 100644 (file)
@@ -1789,7 +1789,7 @@ modest_msg_edit_window_size_change (GtkCheckMenuItem *menu_item,
                        wp_text_view_reset_and_show_im (WP_TEXT_VIEW (priv->msg_body));
                
                text_buffer_refresh_attributes (WP_TEXT_BUFFER (priv->text_buffer), MODEST_MSG_EDIT_WINDOW (window));
                        wp_text_view_reset_and_show_im (WP_TEXT_VIEW (priv->msg_body));
                
                text_buffer_refresh_attributes (WP_TEXT_BUFFER (priv->text_buffer), MODEST_MSG_EDIT_WINDOW (window));
-               markup = g_strconcat ("<span font_family='Serif'>", gtk_label_get_text (GTK_LABEL (label)), "</span>", NULL);
+               markup = g_strconcat ("<span font_family='", DEFAULT_SIZE_BUTTON_FONT_FAMILY, "'>", gtk_label_get_text (GTK_LABEL (label)), "</span>", NULL);
                gtk_label_set_markup (GTK_LABEL (priv->size_tool_button_label), markup);
                g_free (markup);
        }
                gtk_label_set_markup (GTK_LABEL (priv->size_tool_button_label), markup);
                g_free (markup);
        }