]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[viewer] make boot messages show up in monospace
authorRay Strode <rstrode@redhat.com>
Wed, 30 Jun 2010 13:12:24 +0000 (09:12 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 30 Jun 2010 13:12:24 +0000 (09:12 -0400)
They're sort of designed for it, and look weird in some cases,
otherwise.

src/viewer/plymouth-log-viewer.c

index 461e8ff9ac83264b99f88ace56297af806edda91..3bfa13e7be181fecad996a7460b864dff705340a 100644 (file)
@@ -224,6 +224,7 @@ create_window (GtkTextBuffer *buffer)
   GtkWidget *terminal;
   GtkWidget *bbox;
   GtkWidget *close_button;
+  PangoFontDescription *description;
   PangoTabArray *tabs;
   int width, height;
 
@@ -244,6 +245,11 @@ create_window (GtkTextBuffer *buffer)
                                        GTK_SHADOW_IN);
   terminal = gtk_text_view_new_with_buffer (buffer);
   gtk_text_view_set_editable (GTK_TEXT_VIEW (terminal), FALSE);
+
+  description = pango_font_description_from_string ("monospace");
+  gtk_widget_modify_font (terminal, description);
+  pango_font_description_free (description);
+
   tabs = pango_tab_array_new_with_positions (1, TRUE, PANGO_TAB_LEFT, width - 130);
   gtk_text_view_set_tabs (GTK_TEXT_VIEW (terminal), tabs);
   gtk_text_view_set_left_margin (GTK_TEXT_VIEW (terminal), 12);