[libdazzle/libdazzle-3-30] shortcuts: add more debug macros
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle/libdazzle-3-30] shortcuts: add more debug macros
- Date: Sat, 29 Sep 2018 00:24:38 +0000 (UTC)
commit 78be7daab50eb0bb86cef2506683ad8f21612f64
Author: Christian Hergert <chergert redhat com>
Date: Fri Sep 28 17:23:07 2018 -0700
shortcuts: add more debug macros
src/shortcuts/dzl-shortcut-manager.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/shortcuts/dzl-shortcut-manager.c b/src/shortcuts/dzl-shortcut-manager.c
index 5974f69..8d853dd 100644
--- a/src/shortcuts/dzl-shortcut-manager.c
+++ b/src/shortcuts/dzl-shortcut-manager.c
@@ -813,6 +813,8 @@ dzl_shortcut_manager_run_fallbacks (DzlShortcutManager *self,
{
DzlShortcutManagerPrivate *priv = dzl_shortcut_manager_get_instance_private (self);
+ DZL_ENTRY;
+
g_assert (DZL_IS_SHORTCUT_MANAGER (self));
g_assert (GTK_IS_WIDGET (widget));
g_assert (GTK_IS_WIDGET (toplevel));
@@ -829,12 +831,12 @@ dzl_shortcut_manager_run_fallbacks (DzlShortcutManager *self,
/* See if the toplevel activates this, like Tab, etc */
if (gtk_bindings_activate (G_OBJECT (toplevel), keyval, state))
- return TRUE;
+ DZL_RETURN (TRUE);
/* See if there is a mnemonic active that should be activated */
if (GTK_IS_WINDOW (toplevel) &&
gtk_window_mnemonic_activate (GTK_WINDOW (toplevel), keyval, state))
- return TRUE;
+ DZL_RETURN (TRUE);
/*
* See if we have something defined for this theme that
@@ -851,7 +853,7 @@ dzl_shortcut_manager_run_fallbacks (DzlShortcutManager *self,
dzl_g_action_name_parse_full (action, &prefix, &name, &target);
if (dzl_gtk_widget_action (toplevel, prefix, name, target))
- return TRUE;
+ DZL_RETURN (TRUE);
}
/*
@@ -883,13 +885,13 @@ dzl_shortcut_manager_run_fallbacks (DzlShortcutManager *self,
}
if (dzl_gtk_widget_action (widget, prefix, name, param))
- return TRUE;
+ DZL_RETURN (TRUE);
}
}
}
}
- return FALSE;
+ DZL_RETURN (FALSE);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]