[Cxplorer-cvs 00880] CVS update: cxplorer/src

Zurück zum Archiv-Index

Yasumichi Akahoshi yasum****@users*****
2005年 2月 9日 (水) 20:35:12 JST


Index: cxplorer/src/cxp-right-pane.c
diff -u cxplorer/src/cxp-right-pane.c:1.2 cxplorer/src/cxp-right-pane.c:1.3
--- cxplorer/src/cxp-right-pane.c:1.2	Wed Feb  9 20:02:20 2005
+++ cxplorer/src/cxp-right-pane.c	Wed Feb  9 20:35:12 2005
@@ -137,6 +137,7 @@
 static void cxp_right_pane_instance_init (CxpRightPane * self)
 {
 	GtkWidget *scrolled_window;
+	PangoFontDescription *font_desc;
 
 	self->priv = g_new (CxpRightPanePrivate, 1);
 	scrolled_window = gtk_scrolled_window_new (NULL, NULL);
@@ -150,6 +151,10 @@
 	scrolled_window = gtk_scrolled_window_new (NULL,NULL);
 	gtk_paned_pack2 (GTK_PANED (self), scrolled_window, TRUE, TRUE);
 	self->priv->preview = gtk_text_view_new ();
+	font_desc = pango_font_description_new ();
+	pango_font_description_set_family (font_desc, "monospace");
+	gtk_widget_modify_font (GTK_WIDGET(self->priv->preview), font_desc);
+	pango_font_description_free(font_desc);
 	gtk_text_view_set_editable (GTK_TEXT_VIEW(self->priv->preview), FALSE);
 	gtk_container_add(GTK_CONTAINER(scrolled_window), self->priv->preview);
 	gtk_paned_set_position (GTK_PANED (self), 250);


Cxplorer-cvs メーリングリストの案内
Zurück zum Archiv-Index