comparison console/libgnt/gntlabel.h @ 13952:841a5ffbfee4

[gaim-migrate @ 16500] uiops for GaimConnections. This only shows an error message for a disconnect. uiops for GaimNotify. I have not done the notifications for searchresults yet. That will require multi-column GntTree's, which will also allow for improved email-notifications. I hope to complete it by next week. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 17 Jul 2006 03:45:24 +0000
parents 0e1e59770cb0
children 0a0d2a1fd2bc
comparison
equal deleted inserted replaced
13951:614c56622453 13952:841a5ffbfee4
1 #ifndef GNT_LABEL_H 1 #ifndef GNT_LABEL_H
2 #define GNT_LABEL_H 2 #define GNT_LABEL_H
3 3
4 #include "gnt.h" 4 #include "gnt.h"
5 #include "gntwidget.h" 5 #include "gntwidget.h"
6 #include "gnttextview.h"
6 7
7 #define GNT_TYPE_LABEL (gnt_label_get_gtype()) 8 #define GNT_TYPE_LABEL (gnt_label_get_gtype())
8 #define GNT_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_LABEL, GntLabel)) 9 #define GNT_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_LABEL, GntLabel))
9 #define GNT_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_LABEL, GntLabelClass)) 10 #define GNT_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_LABEL, GntLabelClass))
10 #define GNT_IS_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_LABEL)) 11 #define GNT_IS_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_LABEL))
17 struct _GnLabel 18 struct _GnLabel
18 { 19 {
19 GntWidget parent; 20 GntWidget parent;
20 21
21 char *text; 22 char *text;
23 GntTextFormatFlags flags;
22 24
23 void (*gnt_reserved1)(void); 25 void (*gnt_reserved1)(void);
24 void (*gnt_reserved2)(void); 26 void (*gnt_reserved2)(void);
25 void (*gnt_reserved3)(void); 27 void (*gnt_reserved3)(void);
26 void (*gnt_reserved4)(void); 28 void (*gnt_reserved4)(void);
40 42
41 GType gnt_label_get_gtype(void); 43 GType gnt_label_get_gtype(void);
42 44
43 GntWidget *gnt_label_new(const char *text); 45 GntWidget *gnt_label_new(const char *text);
44 46
47 GntWidget *gnt_label_new_with_format(const char *text, GntTextFormatFlags flags);
48
45 G_END_DECLS 49 G_END_DECLS
46 50
47 #endif /* GNT_LABEL_H */ 51 #endif /* GNT_LABEL_H */
48 52