summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-07-06 11:41:25 +0200
committerraveit65 <[email protected]>2020-07-13 12:00:45 +0200
commit896948004dd439d120c54adceb81ec612798669c (patch)
tree04c609b7e118b3216e1f2c2a4c81c1e8b37e43bf /plugins
parent94b46823d2ec0e4cd018f21ff7d583614e3e6bce (diff)
downloadmate-settings-daemon-896948004dd439d120c54adceb81ec612798669c.tar.bz2
mate-settings-daemon-896948004dd439d120c54adceb81ec612798669c.tar.xz
build: Use MATE_DEBUG_CHECK macro
Diffstat (limited to 'plugins')
-rw-r--r--plugins/a11y-keyboard/msd-a11y-keyboard-manager.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
index 73c08d5..85a6330 100644
--- a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
+++ b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
@@ -80,13 +80,6 @@ G_DEFINE_TYPE_WITH_PRIVATE (MsdA11yKeyboardManager, msd_a11y_keyboard_manager, G
static gpointer manager_object = NULL;
-#undef DEBUG_ACCESSIBILITY
-#ifdef DEBUG_ACCESSIBILITY
-#define d(str) g_debug (str)
-#else
-#define d(str) do { } while (0)
-#endif
-
static GdkFilterReturn
devicepresence_filter (GdkXEvent *xevent,
GdkEvent *event,
@@ -209,11 +202,11 @@ set_int (GSettings *settings,
{
int pre_val = g_settings_get_int (settings, key);
g_settings_set_int (settings, key, val);
-#ifdef DEBUG_ACCESSIBILITY
+#ifdef MATE_ENABLE_DEBUG
if (val != pre_val) {
g_warning ("%s changed", key);
}
-#endif
+#endif /* MATE_ENABLE_DEBUG */
return val != pre_val;
}
@@ -226,12 +219,12 @@ set_bool (GSettings *settings,
gboolean pre_val = g_settings_get_boolean (settings, key);
g_settings_set_boolean (settings, key, bval ? TRUE : FALSE);
-#ifdef DEBUG_ACCESSIBILITY
+#ifdef MATE_ENABLE_DEBUG
if (bval != pre_val) {
d ("%s changed", key);
return TRUE;
}
-#endif
+#endif /* MATE_ENABLE_DEBUG */
return (bval != pre_val);
}
@@ -1012,9 +1005,9 @@ start_a11y_keyboard_idle_cb (MsdA11yKeyboardManager *manager)
manager->priv->original_xkb_desc = get_xkb_desc_rec (manager);
event_mask = XkbControlsNotifyMask;
-#ifdef DEBUG_ACCESSIBILITY
+#ifdef MATE_ENABLE_DEBUG
event_mask |= XkbAccessXNotifyMask; /* make default when AXN_AXKWarning works */
-#endif
+#endif /* MATE_ENABLE_DEBUG */
/* be sure to init before starting to monitor the server */
set_server_from_settings (manager);