Revision 38 src/alertpanel.c

alertpanel.c (revision 38)
235 235
	gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0);
236 236
	gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
237 237
	if (!font_desc) {
238
		gchar *fontstr = prefs_common.titlefont
239
			? prefs_common.titlefont
240
			: DEFAULT_TITLE_FONT;
241
		font_desc = pango_font_description_from_string(fontstr);
238
		gint size;
239

  
240
		size = pango_font_description_get_size(label->style->font_desc);
241
		font_desc = pango_font_description_new();
242
		pango_font_description_set_weight(font_desc, PANGO_WEIGHT_BOLD);
243
		pango_font_description_set_size
244
			(font_desc, size * PANGO_SCALE_XX_LARGE);
242 245
	}
243 246
	if (font_desc)
244 247
		gtk_widget_modify_font(label, font_desc);

Also available in: Unified diff