Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 109654
Collapse All | Expand All

(-)src/preference.c.orig (-2 / +6 lines)
Lines 400-406 void calculate_font_size(){ Link Here
400
	PangoFontDescription* desc;
400
	PangoFontDescription* desc;
401
	PangoLanguage* lang;
401
	PangoLanguage* lang;
402
	PangoFontMap* fontmap;
402
	PangoFontMap* fontmap;
403
#ifndef __WIN32__
403
#if !GTK_CHECK_VERSION(2,8,0) && !defined(__WIN32__)
404
	Display *display;
404
	Display *display;
405
#endif
405
#endif
406
	PangoContext *context;
406
	PangoContext *context;
Lines 420-425 void calculate_font_size(){ Link Here
420
	desc = pango_font_description_from_string(fontset_normal);
420
	desc = pango_font_description_from_string(fontset_normal);
421
	lang =  pango_language_from_string("ja");
421
	lang =  pango_language_from_string("ja");
422
422
423
#if GTK_CHECK_VERSION(2,8,0)
424
	fontmap = pango_cairo_font_map_get_default();
425
#else
423
#ifdef __WIN32__
426
#ifdef __WIN32__
424
	fontmap = pango_win32_font_map_for_display();
427
	fontmap = pango_win32_font_map_for_display();
425
#else
428
#else
Lines 430-436 void calculate_font_size(){ Link Here
430
	}
433
	}
431
434
432
	fontmap = pango_x_font_map_for_display(display);
435
	fontmap = pango_x_font_map_for_display(display);
433
#endif
436
#endif /* __WIN32__ */
437
#endif /* GTK_CHECK_VERSION(2,8,0) */
434
438
435
	if(fontmap == NULL){
439
	if(fontmap == NULL){
436
		LOG(LOG_INFO, "fontmap == NULL");
440
		LOG(LOG_INFO, "fontmap == NULL");

Return to bug 109654