summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorracarr <racarr>2007-01-28 19:16:12 +0000
committerracarr <racarr>2007-01-28 19:16:12 +0000
commitaf08c0fb67cce05101ee8fbe47f553780cc278f1 (patch)
tree9b0b92006c6181a5a90e627bbf650f2b21dc2285
parentc66ba0e7fa34f573f03a151e86ef075f8c536380 (diff)
downloadberyl-desktop-manager-af08c0fb67cce05101ee8fbe47f553780cc278f1.tar.gz
beryl-desktop-manager-af08c0fb67cce05101ee8fbe47f553780cc278f1.tar.bz2
Add setBDMWidget function to BDMWidget struct so a widget can know what it's BDMWidget struct is
-rw-r--r--src/bdm-widget.h2
-rw-r--r--src/bdm.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/bdm-widget.h b/src/bdm-widget.h
index 934469e..0443889 100644
--- a/src/bdm-widget.h
+++ b/src/bdm-widget.h
@@ -10,3 +10,5 @@ int getNumText(void);
BDMText * getText(void);
int handleEvent (BDMEvent * event);
+
+void setBDMWidget (BDMWidget * widget);
diff --git a/src/bdm.h b/src/bdm.h
index 5e1088c..604491d 100644
--- a/src/bdm.h
+++ b/src/bdm.h
@@ -127,6 +127,8 @@ typedef BDMText * (*BDMWidgetGetTextProc) (void);
typedef int (*BDMWidgetHandleEventProc) (BDMEvent *event);
+typedef void (*BDMWidgetSetBDMWidgetProc) (BDMWidget * widget);
+
struct _BDMWidget
{
BDMPaintAttribs * attrib;
@@ -146,7 +148,7 @@ struct _BDMWidget
BDMWidgetGetTextProc getText;
BDMWidgetHandleEventProc handleEvent;
-
+ BDMWidgetSetBDMWidgetProc setBDMWidget;
};