summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-28 17:33:53 +0000
committerracarr <racarr>2007-01-28 17:33:53 +0000
commit026f4c6d51cb640c107ba85ec98af151f7d1e757 (patch)
tree5ddf5a9f148cf1e03baabf74b1b99b83a14f9ad2
parenta4954b41f060f738786fcf5943bc232e80e9b258 (diff)
downloadberyl-desktop-manager-026f4c6d51cb640c107ba85ec98af151f7d1e757.tar.gz
beryl-desktop-manager-026f4c6d51cb640c107ba85ec98af151f7d1e757.tar.bz2
Add pointer to BDMWidget in BDMImage and BDMText
-rw-r--r--src/bdm.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bdm.h b/src/bdm.h
index 9d5aada..6c2c07a 100644
--- a/src/bdm.h
+++ b/src/bdm.h
@@ -74,7 +74,7 @@ typedef struct _BDMPaintAttribs
} BDMPaintAttribs;
typedef struct _BDMImage BDMImage;
-
+typedef struct _BDMWidget BDMWidget;
struct _BDMImage
{
BDMPaintAttribs * attrib;
@@ -82,6 +82,7 @@ struct _BDMImage
BDMImage * prev;
GdkPixbuf * pixbuf;
+ BDMWidget * widget;
} ;
typedef struct _BDMText BDMText;
@@ -93,6 +94,7 @@ struct _BDMText
BDMText *prev;
char * text;
+ BDMWidget * widget;
// Add font information, will use pango
} ;
@@ -114,7 +116,7 @@ typedef BDMText * (*BDMWidgetGetTextProc) (void);
typedef int (*BDMWidgetHandleEventProc) (BDMEvent *event);
-typedef struct _BDMWidget
+struct _BDMWidget
{
BDMPaintAttribs * attrib;
BDMImage * images;
@@ -133,7 +135,7 @@ typedef struct _BDMWidget
BDMWidgetHandleEventProc handleEvent;
-} BDMWidget;
+};