Change location entry font to Monospace

"Gustavo J. A. M. Carneiro" <[email protected]> Sun, 11 Jan 2004 17:48:44 +0000
Newsgroups gmane.comp.web.galeon.devel
Organization INESC
Message-ID <1073843324.916.1.camel@emperor>
  Please apply if you like this.
  Regards.

-- 
Gustavo J. A. M. Carneiro
<[email protected]> <[email protected]>
galeon.diff (text/x-patch, 1.5 KB)
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/galeon/ChangeLog,v
retrieving revision 1.4024
diff -u -p -r1.4024 ChangeLog
--- ChangeLog	11 Jan 2004 15:28:00 -0000	1.4024
+++ ChangeLog	11 Jan 2004 17:47:02 -0000
@@ -1,3 +1,8 @@
+2004-01-11  Gustavo J. A. M. Carneiro  <[email protected]>
+
+	* utils/location-entry.c (galeon_location_entry_build): Modify
+	font of location entry to Monospace.
+
 2004-01-11  Crispin Flowerday  <[email protected]>
 
 	* libegg/dock/Makefile.am
Index: utils/location-entry.c
===================================================================
RCS file: /cvs/gnome/galeon/utils/location-entry.c,v
retrieving revision 1.23
diff -u -p -r1.23 location-entry.c
--- utils/location-entry.c	18 Dec 2003 23:42:38 -0000	1.23
+++ utils/location-entry.c	11 Jan 2004 17:47:03 -0000
@@ -244,6 +244,7 @@ galeon_location_entry_build (GaleonLocat
 {
 	GaleonLocationEntryPrivate *p = w->priv;
 	GtkWidget *list;
+	PangoFontDescription *font_desc;
 
 	p->combo = gnome_entry_new (GALEON_LOCATION_ENTRY_HISTORY_ID);
 	p->entry = GTK_COMBO (p->combo)->entry;
@@ -264,6 +265,9 @@ galeon_location_entry_build (GaleonLocat
 	g_signal_connect_after (list, "event-after", 
 				G_CALLBACK (galeon_location_entry_list_event_after_cb), w);
 
+	font_desc = pango_font_description_from_string ("Monospace");
+	gtk_widget_modify_font (p->entry, font_desc);
+	pango_font_description_free (font_desc);
 }
 
 static gint