mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 15:29:45 +03:00
Fixed pitch font for GTK source view
svn path=/trunk/netsurf/; revision=7147
This commit is contained in:
parent
aef5c88839
commit
b648e36dc1
@ -194,7 +194,11 @@ void nsgtk_source_dialog_init(GtkWindow *parent, struct browser_window *bw)
|
||||
GtkTextView *sourceview = GTK_TEXT_VIEW(
|
||||
glade_xml_get_widget(glade_File,
|
||||
"source_view"));
|
||||
PangoFontDescription *fontdesc =
|
||||
pango_font_description_from_string("Monospace 8");
|
||||
|
||||
thiswindow->gv = sourceview;
|
||||
gtk_widget_modify_font(GTK_WIDGET(sourceview), fontdesc);
|
||||
GtkTextBuffer *tb = gtk_text_view_get_buffer(sourceview);
|
||||
gtk_text_buffer_set_text(tb, thiswindow->data, -1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user