forked from AuroraMiddleware/gtk
Fix the small text for text in GtkAboutDialog
The conversion from gtk_widget_override_font to a GtkTextTag
in fbbb66ae7d
was defective.
https://bugzilla.gnome.org/show_bug.cgi?id=701119
This commit is contained in:
parent
72c3879893
commit
50c3eb9acc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user