~ubuntu-branches/ubuntu/oneiric/avant-window-navigator/oneiric

« back to all changes in this revision

Viewing changes to libawn/awn-applet-gconf.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2008-05-24 14:42:01 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080524144201-r3v8e4g2hv2q1i9x
Tags: 0.2.6-6
* debian/patches/04-fix-colormap.patch
 - Fix crash in awn-manager if colormap == None. Thanks Emme for the 
   patch. (Closes: #482030) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * awn-applet-gconf.h: awn applet preferences handling.
3
 
 *
4
 
 * Copyright (C) 2001-2003 Sun Microsystems, Inc.
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
 
 * Authors:
22
 
 *     Mark McLoughlin <mark@skynet.ie>
23
 
 *     Neil Jagdish Patel <njpatel@gmail.com> (Adapted for Awn)
24
 
 */
25
 
 
26
 
#ifndef __AWN_APPLET_GCONF_H__
27
 
#define __AWN_APPLET_GCONF_H__
28
 
 
29
 
#include <glib/gmacros.h>
30
 
#include <glib/gerror.h>
31
 
#include <gconf/gconf-value.h> 
32
 
 
33
 
#include "awn-applet.h"
34
 
 
35
 
G_BEGIN_DECLS
36
 
 
37
 
gchar       *awn_applet_gconf_get_full_key (AwnApplet     *applet,
38
 
                                              const gchar     *key);
39
 
 
40
 
void         awn_applet_gconf_set_bool     (AwnApplet     *applet,
41
 
                                              const gchar     *key,
42
 
                                              gboolean         the_bool,
43
 
                                              GError         **opt_error);
44
 
void         awn_applet_gconf_set_int      (AwnApplet     *applet,
45
 
                                              const gchar     *key,
46
 
                                              gint             the_int,
47
 
                                              GError         **opt_error);
48
 
void         awn_applet_gconf_set_string   (AwnApplet     *applet,
49
 
                                              const gchar     *key,
50
 
                                              const gchar     *the_string,
51
 
                                              GError         **opt_error);
52
 
void         awn_applet_gconf_set_float    (AwnApplet     *applet,
53
 
                                              const gchar     *key,
54
 
                                              gdouble          the_float,
55
 
                                              GError         **opt_error);
56
 
void         awn_applet_gconf_set_list     (AwnApplet     *applet,
57
 
                                              const gchar     *key,
58
 
                                              GConfValueType   list_type,
59
 
                                              GSList          *list,
60
 
                                              GError         **opt_error);
61
 
void         awn_applet_gconf_set_value    (AwnApplet     *applet,
62
 
                                              const gchar     *key,
63
 
                                              GConfValue      *value,
64
 
                                              GError         **opt_error);
65
 
 
66
 
gboolean     awn_applet_gconf_get_bool     (AwnApplet     *applet,
67
 
                                              const gchar     *key,
68
 
                                              GError         **opt_error);
69
 
gint         awn_applet_gconf_get_int      (AwnApplet     *applet,
70
 
                                              const gchar     *key,
71
 
                                              GError         **opt_error);
72
 
gchar       *awn_applet_gconf_get_string   (AwnApplet     *applet,
73
 
                                              const gchar     *key,
74
 
                                              GError         **opt_error);
75
 
gdouble      awn_applet_gconf_get_float    (AwnApplet     *applet,
76
 
                                              const gchar     *key,
77
 
                                              GError         **opt_error);
78
 
GSList      *awn_applet_gconf_get_list     (AwnApplet     *applet,
79
 
                                              const gchar     *key,
80
 
                                              GConfValueType   list_type,
81
 
                                              GError         **opt_error);
82
 
 
83
 
GConfValue  *awn_applet_gconf_get_value    (AwnApplet     *applet,
84
 
                                              const gchar     *key,
85
 
                                              GError         **opt_error);
86
 
 
87
 
G_END_DECLS
88
 
 
89
 
#endif /* __AWN_APPLET_GCONF_H__ */