Correction of a bug that prevented RT to use the same font everywhere

This commit is contained in:
Hombre
2010-10-06 22:07:01 +02:00
parent 7be9746404
commit 5dc2955f18
8 changed files with 2 additions and 15 deletions

View File

@@ -1031,7 +1031,7 @@ void Preferences::switchThemeTo(Glib::ustring newTheme) {
void Preferences::switchFontTo(Glib::ustring newFont) {
Gtk::RC::parse_string (Glib::ustring::compose(
"style \"clearlooks-default\" { font_name = \"%1\" } style \"clearlooks-menu-item\" { font_name = \"%1\" }", newFont));
"style \"clearlooks-default\" { font_name = \"%1\" }", newFont));
Gtk::RC::reparse_all (Gtk::Settings::get_default());
GdkEventClient event = { GDK_CLIENT_EVENT, NULL, TRUE, gdk_atom_intern("_GTK_READ_RCFILES", FALSE), 8 };
gdk_event_send_clientmessage_toall ((GdkEvent*)&event);