]> Dogcows Code - chaz/openbox/blobdiff - otk/application.hh
set the close protocol on the app's main widget
[chaz/openbox] / otk / application.hh
index d266287dfcebfb1e7ceaa5465dfaaf1b6f882429..d6f1ed8dac7f24fff6084291c49a65d180fa529d 100644 (file)
@@ -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
 };
 
 }
This page took 0.025106 seconds and 4 git commands to generate.