[beast: 1/12] BEAST: provide bst_param_is_proxy()
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 1/12] BEAST: provide bst_param_is_proxy()
- Date: Thu, 24 Sep 2015 20:09:20 +0000 (UTC)
commit ef0e3e31ee6a399198c1c2805e33ccea69c185dd
Author: Tim Janik <timj gnu org>
Date: Tue Sep 22 18:00:26 2015 +0200
BEAST: provide bst_param_is_proxy()
beast-gtk/bstparam.cc | 7 +++++++
beast-gtk/bstparam.hh | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/beast-gtk/bstparam.cc b/beast-gtk/bstparam.cc
index 61c958c..0e0ebfa 100644
--- a/beast-gtk/bstparam.cc
+++ b/beast-gtk/bstparam.cc
@@ -329,6 +329,13 @@ bst_param_get_proxy (GxkParam *param)
return 0;
}
+bool
+bst_param_is_proxy (GxkParam *param)
+{
+ assert_return (GXK_IS_PARAM (param), 0);
+ return param->binding == &proxy_binding;
+}
+
/* --- record binding --- */
static void
diff --git a/beast-gtk/bstparam.hh b/beast-gtk/bstparam.hh
index e140ef1..173c7c4 100644
--- a/beast-gtk/bstparam.hh
+++ b/beast-gtk/bstparam.hh
@@ -39,6 +39,7 @@ GxkParam* bst_param_new_proxy (GParamSpec *pspec,
void bst_param_set_proxy (GxkParam *param,
SfiProxy proxy);
SfiProxy bst_param_get_proxy (GxkParam *param);
+bool bst_param_is_proxy (GxkParam *param);
SfiProxy bst_item_seq_list_match (GSList *proxy_seq_slist, /* bstparam-proxy.cc */
const gchar *text);
GxkParam* bst_param_new_aida_parameter (GParamSpec *pspec, const Rapicorn::Aida::Parameter &aparameter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]