[Libguestfs] [PATCH 7/7] p2v: Use a monospace font for the run dialog.

Richard W.M. Jones rjones at redhat.com
Sat Jun 18 15:09:17 UTC 2016


---
 p2v/gui.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/p2v/gui.c b/p2v/gui.c
index c34bc6c..98ce60c 100644
--- a/p2v/gui.c
+++ b/p2v/gui.c
@@ -1657,6 +1657,7 @@ create_running_dialog (void)
     { "black", "maroon", "green", "olive", "navy", "purple", "teal", "silver",
       "gray", "red", "lime", "yellow", "blue", "fuchsia", "cyan", "white" };
   GtkTextBuffer *buf;
+  PangoFontDescription *font;
 
   run_dlg = gtk_dialog_new ();
   gtk_window_set_title (GTK_WINDOW (run_dlg), guestfs_int_program_name);
@@ -1682,6 +1683,10 @@ create_running_dialog (void)
       gtk_text_buffer_create_tag (buf, tag_name, "foreground", tags[i], NULL);
   }
 
+  font = pango_font_description_from_string ("Monospace 11");
+  gtk_widget_modify_font (v2v_output, font);
+  pango_font_description_free (font);
+
   log_label = gtk_label_new (NULL);
   set_alignment (log_label, 0., 0.5);
   set_padding (log_label, 10, 10);
-- 
2.7.4




More information about the Libguestfs mailing list