Lines 1-7
Link Here
|
1 |
|
1 |
|
2 |
#include "dview.h" |
2 |
#include "dview.h" |
3 |
#ifndef SDLMAME_WIN32 |
3 |
#ifndef SDLMAME_WIN32 |
4 |
#include <gconf/gconf-client.h> |
|
|
5 |
#endif |
4 |
#endif |
6 |
|
5 |
|
7 |
G_DEFINE_TYPE(DView, dview, GTK_TYPE_CONTAINER); |
6 |
G_DEFINE_TYPE(DView, dview, GTK_TYPE_CONTAINER); |
Lines 345-366
Link Here
|
345 |
|
344 |
|
346 |
static void dview_class_init(DViewClass *dvc) |
345 |
static void dview_class_init(DViewClass *dvc) |
347 |
{ |
346 |
{ |
348 |
#ifndef SDLMAME_WIN32 |
347 |
dvc->fixedfont = pango_font_description_from_string("Monospace 10"); |
349 |
GConfClient *conf = gconf_client_get_default(); |
|
|
350 |
char *name = 0; |
351 |
dvc->fixedfont = 0; |
352 |
|
353 |
if(conf) |
354 |
name = gconf_client_get_string(conf, "/desktop/gnome/interface/monospace_font_name", 0); |
355 |
|
356 |
if(name) { |
357 |
dvc->fixedfont = pango_font_description_from_string(name); |
358 |
g_free(name); |
359 |
} |
360 |
|
361 |
if(!dvc->fixedfont) |
362 |
#endif |
363 |
dvc->fixedfont = pango_font_description_from_string("Monospace 10"); |
364 |
|
348 |
|
365 |
if(!dvc->fixedfont) { |
349 |
if(!dvc->fixedfont) { |
366 |
mame_printf_error("Couldn't find a monospace font, aborting\n"); |
350 |
mame_printf_error("Couldn't find a monospace font, aborting\n"); |