blob: 9627dcfc9eebe0c43a4778bce69e8d520f25b2b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef __GLADE_ATTRIBUTES_H__
#define __GLADE_ATTRIBUTES_H__
#include <glib-object.h>
#include <gladeui/glade.h>
G_BEGIN_DECLS
#define GLADE_TYPE_EPROP_ATTRS (glade_eprop_attrs_get_type())
#define GLADE_TYPE_ATTR_GLIST (glade_attr_glist_get_type())
/* The GladeParamSpecAttributes is a GList * of GladeAttribute structs */
typedef struct _GladeAttribute GladeAttribute;
struct _GladeAttribute {
PangoAttrType type; /* The type of pango attribute */
GValue value; /* The corresponding value */
guint start; /* The text offsets where the attributes should apply to */
guint end;
};
GType glade_eprop_attrs_get_type (void) G_GNUC_CONST;
GType glade_attr_glist_get_type (void) G_GNUC_CONST;
GladeAttribute *glade_gtk_attribute_from_string (PangoAttrType type,
const gchar *strval);
gchar *glade_gtk_string_from_attr (GladeAttribute *gattr);
void glade_attr_list_free (GList *attrs);
G_END_DECLS
#endif /* __GLADE_ATTRIBUTES_H__ */
|