summaryrefslogtreecommitdiff
path: root/gtk/gtkaboutdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-07-08 21:46:43 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-07-08 21:46:43 -0400
commit50c3eb9accf7665e51820f7f95870f6280777dde (patch)
tree3b1df265ab499eb6cf2ba16872df81dad56c7136 /gtk/gtkaboutdialog.c
parent72c3879893c792a898d375e356a03b77b3b5783e (diff)
downloadgtk+-50c3eb9accf7665e51820f7f95870f6280777dde.tar.gz
Fix the small text for text in GtkAboutDialog
The conversion from gtk_widget_override_font to a GtkTextTag in fbbb66ae7d19516b7a99de3d8b0a96164fb3ead2 was defective. https://bugzilla.gnome.org/show_bug.cgi?id=701119
Diffstat (limited to 'gtk/gtkaboutdialog.c')
-rw-r--r--gtk/gtkaboutdialog.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 514719cba2..992b8682b8 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2036,12 +2036,6 @@ text_buffer_new (GtkAboutDialog *about,
buffer = gtk_text_buffer_new (NULL);
- gtk_text_buffer_get_start_iter (buffer, &start_iter);
- gtk_text_buffer_get_start_iter (buffer, &end_iter);
- tag = gtk_text_tag_new (NULL);
- g_object_set (tag, "font-scale", PANGO_SCALE_SMALL, NULL);
- gtk_text_buffer_apply_tag (buffer, tag, &start_iter, &end_iter);
-
for (p = strings; *p; p++)
{
q0 = *p;
@@ -2128,6 +2122,14 @@ text_buffer_new (GtkAboutDialog *about,
gtk_text_buffer_insert_at_cursor (buffer, "\n", 1);
}
+ tag = gtk_text_buffer_create_tag (buffer, NULL,
+ "scale", PANGO_SCALE_SMALL,
+ NULL);
+
+ gtk_text_buffer_get_start_iter (buffer, &start_iter);
+ gtk_text_buffer_get_end_iter (buffer, &end_iter);
+ gtk_text_buffer_apply_tag (buffer, tag, &start_iter, &end_iter);
+
return buffer;
}