~ubuntu-branches/ubuntu/quantal/gnome-documents/quantal

« back to all changes in this revision

Viewing changes to libgd/libgd/gd-tagged-entry.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-08-22 10:01:18 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120822100118-3837rqfy72e1op72
Tags: 3.5.90-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2011 Red Hat, Inc.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by 
 
6
 * the Free Software Foundation; either version 2 of the License, or (at your
 
7
 * option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful, but
 
10
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
11
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
 
12
 * License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public License 
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 *
 
18
 * Author: Cosimo Cecchi <cosimoc@redhat.com>
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __GD_TAGGED_ENTRY_H__
 
23
#define __GD_TAGGED_ENTRY_H__
 
24
 
 
25
#include <glib-object.h>
 
26
 
 
27
#include <gtk/gtk.h>
 
28
 
 
29
G_BEGIN_DECLS
 
30
 
 
31
#define GD_TYPE_TAGGED_ENTRY gd_tagged_entry_get_type()
 
32
 
 
33
#define GD_TAGGED_ENTRY(obj) \
 
34
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
35
   GD_TYPE_TAGGED_ENTRY, GdTaggedEntry))
 
36
 
 
37
#define GD_TAGGED_ENTRY_CLASS(klass) \
 
38
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
39
   GD_TYPE_TAGGED_ENTRY, GdTaggedEntryClass))
 
40
 
 
41
#define GD_IS_TAGGED_ENTRY(obj) \
 
42
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
43
   GD_TYPE_TAGGED_ENTRY))
 
44
 
 
45
#define GD_IS_TAGGED_ENTRY_CLASS(klass) \
 
46
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
47
   GD_TYPE_TAGGED_ENTRY))
 
48
 
 
49
#define GD_TAGGED_ENTRY_GET_CLASS(obj) \
 
50
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
 
51
   GD_TYPE_TAGGED_ENTRY, GdTaggedEntryClass))
 
52
 
 
53
typedef struct _GdTaggedEntry GdTaggedEntry;
 
54
typedef struct _GdTaggedEntryClass GdTaggedEntryClass;
 
55
typedef struct _GdTaggedEntryPrivate GdTaggedEntryPrivate;
 
56
 
 
57
struct _GdTaggedEntry
 
58
{
 
59
  GtkSearchEntry parent;
 
60
 
 
61
  GdTaggedEntryPrivate *priv;
 
62
};
 
63
 
 
64
struct _GdTaggedEntryClass
 
65
{
 
66
  GtkSearchEntryClass parent_class;
 
67
};
 
68
 
 
69
GType gd_tagged_entry_get_type (void) G_GNUC_CONST;
 
70
 
 
71
GdTaggedEntry *gd_tagged_entry_new (void);
 
72
 
 
73
void     gd_tagged_entry_set_tag_button_visible (GdTaggedEntry *self,
 
74
                                                 gboolean       visible);
 
75
gboolean gd_tagged_entry_get_tag_button_visible (GdTaggedEntry *self);
 
76
 
 
77
gboolean gd_tagged_entry_add_tag (GdTaggedEntry *entry,
 
78
                                  const gchar *id,
 
79
                                  const gchar *label);
 
80
 
 
81
gboolean gd_tagged_entry_remove_tag (GdTaggedEntry *self,
 
82
                                     const gchar *id);
 
83
 
 
84
gboolean gd_tagged_entry_set_tag_label (GdTaggedEntry *self,
 
85
                                        const gchar *tag_id,
 
86
                                        const gchar *label);
 
87
 
 
88
G_END_DECLS
 
89
 
 
90
#endif /* __GD_TAGGED_ENTRY_H__ */