From a0ab7463b8c1e866dc85baa1e33453942864fbc6 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 06 Oct 2017 16:58:51 -0400 Subject: src/web-settings.c: Rename wkwc_*() callbacks --- (limited to 'src') diff --git a/src/web-settings.c b/src/web-settings.c index ac03009..0820f8d 100644 --- a/src/web-settings.c +++ b/src/web-settings.c @@ -201,7 +201,7 @@ wks_str_cb(MqConfig __attribute__((unused)) *config, const gchar *name, } static void -wkwc_set_spell_checking_enabled(MqConfig __attribute__((unused)) *config, +wkwc_spell_checking_enabled_cb(MqConfig __attribute__((unused)) *config, const gchar __attribute__((unused)) *name, const gboolean value, WebKitWebContext *wk_web_context) { @@ -209,7 +209,7 @@ wkwc_set_spell_checking_enabled(MqConfig __attribute__((unused)) *config, } static void -wkwc_set_spell_checking_languages(MqConfig *config, const gchar *name, +wkwc_spell_checking_languages_cb(MqConfig *config, const gchar *name, const gchar __attribute__((unused)) *value, WebKitWebContext *wk_web_context) { @@ -219,7 +219,7 @@ wkwc_set_spell_checking_languages(MqConfig *config, const gchar *name, } static void -wkwc_set_preferred_languages(MqConfig *config, const gchar *name, +wkwc_preferred_languages_cb(MqConfig *config, const gchar *name, const gchar __attribute__((unused)) *value, WebKitWebContext *wk_web_context) { @@ -301,20 +301,20 @@ mq_web_settings_connect(MqConfig *config, WebKitSettings *wk_settings, /* General -> Spell Checking */ mq_config_notify_boolean(config, "spell.enable", - (MqConfigBooleanCallback) wkwc_set_spell_checking_enabled, + (MqConfigBooleanCallback) wkwc_spell_checking_enabled_cb, wk_web_context); - wkwc_set_spell_checking_enabled(config, "spell.enable", + wkwc_spell_checking_enabled_cb(config, "spell.enable", mq_config_get_boolean(config, "spell.enable"), wk_web_context); mq_config_notify_string(config, "spell.langs", - (MqConfigStringCallback) wkwc_set_spell_checking_languages, + (MqConfigStringCallback) wkwc_spell_checking_languages_cb, wk_web_context); - wkwc_set_spell_checking_languages(config, "spell.langs", NULL, + wkwc_spell_checking_languages_cb(config, "spell.langs", NULL, wk_web_context); /* Display -> Languages */ mq_config_notify_string(config, "intl.accept-languages", - (MqConfigStringCallback) wkwc_set_preferred_languages, + (MqConfigStringCallback) wkwc_preferred_languages_cb, wk_web_context); - wkwc_set_preferred_languages(config, "intl.accept-languages", NULL, + wkwc_preferred_languages_cb(config, "intl.accept-languages", NULL, wk_web_context); } -- cgit v0.9.1