static void gimp_text_style_editor_set_default_font (GimpTextStyleEditor *editor) { g_signal_handlers_block_by_func (editor->context, gimp_text_style_editor_font_changed, editor); gimp_context_set_font_name (editor->context, editor->text->font); g_signal_handlers_unblock_by_func (editor->context, gimp_text_style_editor_font_changed, editor); }
static void gimp_text_options_notify_text_font (GimpText *text, GParamSpec *pspec, GimpContext *context) { g_signal_handlers_block_by_func (context, gimp_text_options_notify_font, text); gimp_context_set_font_name (context, text->font); g_signal_handlers_unblock_by_func (context, gimp_text_options_notify_font, text); }
static void gimp_text_style_editor_set_font (GimpTextStyleEditor *editor, GtkTextTag *font_tag) { gchar *font = NULL; if (font_tag) font = gimp_text_tag_get_font (font_tag); g_signal_handlers_block_by_func (editor->context, gimp_text_style_editor_font_changed, editor); gimp_context_set_font_name (editor->context, font); g_signal_handlers_unblock_by_func (editor->context, gimp_text_style_editor_font_changed, editor); g_free (font); }