aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-binding.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-14 11:40:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-14 19:12:52 +0800
commit1e663aa13266cad55e5019c03e768a38955166eb (patch)
tree6d7a3e20d3a24f004d0db4ab1c06d8a768b2f112 /e-util/e-binding.h
parent3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff)
downloadgsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.gz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.bz2
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.lz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.xz
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.zst
gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.zip
Replace EBinding with GBinding.
GObject now does property bindings itself. Requires GLib >= 2.26.
Diffstat (limited to 'e-util/e-binding.h')
-rw-r--r--e-util/e-binding.h117
1 files changed, 0 insertions, 117 deletions
diff --git a/e-util/e-binding.h b/e-util/e-binding.h
deleted file mode 100644
index 180edc9f49..0000000000
--- a/e-util/e-binding.h
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
- * e-binding.h
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) version 3.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with the program; if not, see <http://www.gnu.org/licenses/>
- *
- *
- * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
- *
- */
-
-/* This is a direct rip-off of Xfce's excellent ExoBinding API,
- * which binds two GObject properties together. ExoBinding was
- * written by Benedikt Meurer <benny@xfce.org>. */
-
-#ifndef E_BINDING_H
-#define E_BINDING_H
-
-#include <gdk/gdk.h>
-
-G_BEGIN_DECLS
-
-typedef struct _EBinding EBinding;
-typedef struct _EBindingBase EBindingBase;
-typedef struct _EBindingLink EBindingLink;
-typedef struct _EMutualBinding EMutualBinding;
-
-typedef gboolean (*EBindingTransform) (const GValue *src_value,
- GValue *dst_value,
- gpointer user_data);
-
-struct _EBindingBase {
- GDestroyNotify destroy;
-};
-
-struct _EBindingLink {
- GObject *dst_object;
- GParamSpec *dst_pspec;
- gulong dst_handler; /* only set for mutual bindings */
- gulong handler;
- EBindingTransform transform;
- gpointer user_data;
-};
-
-struct _EBinding {
- /*< private >*/
- GObject *src_object;
- EBindingBase base;
- EBindingLink link;
-};
-
-struct _EMutualBinding {
- /*< private >*/
- EBindingBase base;
- EBindingLink direct;
- EBindingLink reverse;
-};
-
-EBinding * e_binding_new (gpointer src_object,
- const gchar *src_property,
- gpointer dst_object,
- const gchar *dst_property);
-EBinding * e_binding_new_full (gpointer src_object,
- const gchar *src_property,
- gpointer dst_object,
- const gchar *dst_property,
- EBindingTransform transform,
- GDestroyNotify destroy_notify,
- gpointer user_data);
-EBinding * e_binding_new_with_negation (gpointer src_object,
- const gchar *src_property,
- gpointer dst_object,
- const gchar *dst_property);
-void e_binding_unbind (EBinding *binding);
-
-EMutualBinding *e_mutual_binding_new (gpointer object1,
- const gchar *property1,
- gpointer object2,
- const gchar *property2);
-EMutualBinding *e_mutual_binding_new_full (gpointer object1,
- const gchar *property1,
- gpointer object2,
- const gchar *property2,
- EBindingTransform transform,
- EBindingTransform reverse_transform,
- GDestroyNotify destroy_notify,
- gpointer user_data);
-EMutualBinding *e_mutual_binding_new_with_negation
- (gpointer object1,
- const gchar *property1,
- gpointer object2,
- const gchar *property2);
-void e_mutual_binding_unbind (EMutualBinding *binding);
-
-/* Useful transformation functions */
-gboolean e_binding_transform_color_to_string
- (const GValue *src_value,
- GValue *dst_value,
- gpointer user_data);
-gboolean e_binding_transform_string_to_color
- (const GValue *src_value,
- GValue *dst_value,
- gpointer user_data);
-
-G_END_DECLS
-
-#endif /* E_BINDING_H */