diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-16 14:30:18 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-16 14:30:18 +0000 |
| commit | 12a95bfdb31595ec53d72adef4e0fd6bf1ccf218 (patch) | |
| tree | 5a7fd6a4b2a56e6849ef0fe87b67b5dcc03807ab /otk/application.hh | |
| parent | 3bc1f37469a4933966f049cc57093fb564b721a3 (diff) | |
add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display.
Exit when all the "root windows" are hidden.
Support the WM_DELETE protocol to hide a "root window".
Diffstat (limited to 'otk/application.hh')
| -rw-r--r-- | otk/application.hh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/otk/application.hh b/otk/application.hh index d6f1ed8d..7696e73d 100644 --- a/otk/application.hh +++ b/otk/application.hh @@ -10,7 +10,7 @@ namespace otk { -class OtkWidget; +class OtkAppWidget; class OtkApplication : public OtkEventDispatcher { @@ -28,20 +28,18 @@ 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 + int _appwidget_count; + + friend class OtkAppWidget; }; } |
