[gthumb] no need to set the font description



commit f5f4af8982ca70835775b238238ec117c869ba57
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu May 19 22:15:12 2011 +0200

    no need to set the font description

 extensions/image_viewer/gth-image-viewer-page.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/extensions/image_viewer/gth-image-viewer-page.c b/extensions/image_viewer/gth-image-viewer-page.c
index 7781094..33daf29 100644
--- a/extensions/image_viewer/gth-image-viewer-page.c
+++ b/extensions/image_viewer/gth-image-viewer-page.c
@@ -604,8 +604,6 @@ paint_comment_over_image_func (GthImageViewer *image_viewer,
 	int                 text_y;
 	int                 icon_x;
 	int                 icon_y;
-	GtkStyle           *style;
-	PangoFontDescription *font;
 
 	file_info = g_string_new ("");
 
@@ -636,12 +634,8 @@ paint_comment_over_image_func (GthImageViewer *image_viewer,
 			        n_visibles,
 				g_file_info_get_attribute_string (file_data->info, "standard::display-name"));
 
-	style = gtk_widget_get_style (GTK_WIDGET (self->priv->viewer));
 	layout = gtk_widget_create_pango_layout (GTK_WIDGET (self->priv->viewer), NULL);
-	gtk_style_get (style, PANGO_TYPE_FONT_DESCRIPTION, "font", &font, NULL);
-
 	pango_layout_set_wrap (layout, PANGO_WRAP_WORD);
-	pango_layout_set_font_description (layout, font);
 	pango_layout_set_alignment (layout, PANGO_ALIGN_LEFT);
 
 	if (! pango_parse_markup (file_info->str,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]