summaryrefslogtreecommitdiff
path: root/otk/application.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-16 13:50:59 +0000
committerDana Jansens <danakj@orodu.net>2002-11-16 13:50:59 +0000
commit81e1982744e1d692fbe54cc840e93099cbe974af (patch)
tree1d381bce6c55a847b6c2823320ea76f90355a7b5 /otk/application.hh
parent77342413efd183bd1c0681a57b68acc836022923 (diff)
set the close protocol on the app's main widget
Diffstat (limited to 'otk/application.hh')
-rw-r--r--otk/application.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/otk/application.hh b/otk/application.hh
index d266287d..d6f1ed8d 100644
--- a/otk/application.hh
+++ b/otk/application.hh
@@ -10,6 +10,8 @@
namespace otk {
+class OtkWidget;
+
class OtkApplication : public OtkEventDispatcher {
public:
@@ -26,14 +28,20 @@ public:
inline Style *getStyle(void) const { return _style; }
// more accessors
+protected:
+ bool setMainWidget(const OtkWidget *main_widget);
+
private:
void loadStyle(void);
+ const OtkWidget *_main_widget;
OBTimerQueueManager *_timer_manager;
BImageControl *_img_ctrl;
Configuration *_style_conf;
Style *_style;
bool _dockable;
+
+ friend class OtkWidget; // for access to setMainWidget
};
}