~timchen119/ubuntu/trusty/gnome-bluetooth/lp1035431

« back to all changes in this revision

Viewing changes to properties/gconf-bridge.h

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2011-02-27 15:45:22 UTC
  • mfrom: (1.3.2 upstream)
  • mto: (2.2.3 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20110227154522-dnnoqasv5v3mv42a
Tags: upstream-2.91.5
ImportĀ upstreamĀ versionĀ 2.91.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* 
2
 
 * (C) 2005 OpenedHand Ltd.
3
 
 *
4
 
 * Author: Jorn Baayen <jorn@openedhand.com>
5
 
 *
6
 
 * This library is free software; you can redistribute it and/or
7
 
 * modify it under the terms of the GNU Library General Public
8
 
 * License as published by the Free Software Foundation; either
9
 
 * version 2 of the License, or (at your option) any later version.
10
 
 *
11
 
 * This library is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
 * Library General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU Library General Public
17
 
 * License along with this library; if not, write to the
18
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
 
 * Boston, MA 02111-1307, USA.
20
 
 */
21
 
 
22
 
#ifndef __GCONF_BRIDGE_H__
23
 
#define __GCONF_BRIDGE_H__
24
 
 
25
 
#include <gconf/gconf-client.h>
26
 
#include <gtk/gtk.h>
27
 
 
28
 
G_BEGIN_DECLS
29
 
 
30
 
void gconf_bridge_install_default_error_handler (void);
31
 
 
32
 
typedef struct _GConfBridge GConfBridge;
33
 
 
34
 
GConfBridge *gconf_bridge_get                    (void);
35
 
 
36
 
GConfClient *gconf_bridge_get_client             (GConfBridge  *bridge);
37
 
 
38
 
guint        gconf_bridge_bind_property_full     (GConfBridge  *bridge,
39
 
                                                  const char   *key,
40
 
                                                  GObject      *object,
41
 
                                                  const char   *prop,
42
 
                                                  gboolean      delayed_sync);
43
 
 
44
 
/**
45
 
 * gconf_bridge_bind_property
46
 
 * @bridge: A #GConfBridge
47
 
 * @key: A GConf key to be bound
48
 
 * @object: A #GObject
49
 
 * @prop: The property of @object to be bound
50
 
 *
51
 
 * Binds @key to @prop without delays, causing them to have the same value at all times. See
52
 
 * #gconf_bridge_bind_property_full for more details.
53
 
 *
54
 
 **/
55
 
#define gconf_bridge_bind_property(bridge, key, object, prop) \
56
 
        gconf_bridge_bind_property_full ((bridge), (key), \
57
 
                                         (object), (prop), FALSE)
58
 
 
59
 
/**
60
 
 * gconf_bridge_bind_property_delayed
61
 
 * @bridge: A #GConfBridge
62
 
 * @key: A GConf key to be bound
63
 
 * @object: A #GObject
64
 
 * @prop: The property of @object to be bound
65
 
 *
66
 
 * Binds @key to @prop with a delay, causing them to have the same value at all
67
 
 * times. See #gconf_bridge_bind_property_full for more details.
68
 
 **/
69
 
#define gconf_bridge_bind_property_delayed(bridge, key, object, prop) \
70
 
        gconf_bridge_bind_property_full ((bridge), (key), \
71
 
                                         (object), (prop), TRUE)
72
 
 
73
 
guint        gconf_bridge_bind_window            (GConfBridge  *bridge,
74
 
                                                  const char   *key_prefix,
75
 
                                                  GtkWindow    *window,
76
 
                                                  gboolean      bind_size,
77
 
                                                  gboolean      bind_pos);
78
 
 
79
 
/**
80
 
 * gconf_bridge_bind_window_size
81
 
 * @bridge: A #GConfBridge
82
 
 * @key_prefix: The prefix of the GConf keys
83
 
 * @window: A #GtkWindow
84
 
 * 
85
 
 * On calling this function @window will be resized to the values specified by
86
 
 * "@key_prefix<!-- -->_width" and "@key_prefix<!-- -->_height".  The respective
87
 
 * GConf values will be updated when the window is resized. See
88
 
 * #gconf_bridge_bind_window for more details.
89
 
 **/
90
 
#define gconf_bridge_bind_window_size(bridge, key_prefix, window) \
91
 
        gconf_bridge_bind_window ((bridge), (key_prefix), (window), TRUE, FALSE)
92
 
 
93
 
/**
94
 
 * gconf_bridge_bind_window_pos
95
 
 * @bridge: A #GConfBridge
96
 
 * @key_prefix: The prefix of the GConf keys
97
 
 * @window: A #GtkWindow
98
 
 * 
99
 
 * On calling this function @window will be moved to the values specified by
100
 
 * "@key_prefix<!-- -->_x" and "@key_prefix<!-- -->_y". The respective GConf
101
 
 * values will be updated when the window is moved. See
102
 
 * #gconf_bridge_bind_window for more details.
103
 
 **/
104
 
#define gconf_bridge_bind_window_pos(bridge, key_prefix, window) \
105
 
        gconf_bridge_bind_window ((bridge), (key_prefix), (window), FALSE, TRUE)
106
 
 
107
 
guint        gconf_bridge_bind_string_list_store (GConfBridge  *bridge,
108
 
                                                  const char   *key,
109
 
                                                  GtkListStore *list_store);
110
 
 
111
 
void         gconf_bridge_unbind                 (GConfBridge  *bridge,
112
 
                                                  guint         binding_id);
113
 
 
114
 
G_END_DECLS
115
 
 
116
 
#endif /* __GCONF_BRIDGE_H__ */