diff options
Diffstat (limited to 'src/Screen.hh')
-rw-r--r-- | src/Screen.hh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Screen.hh b/src/Screen.hh index 7954456..1858829 100644 --- a/src/Screen.hh +++ b/src/Screen.hh | |||
@@ -352,6 +352,10 @@ public: | |||
352 | void removeConfigMenu(FbTk::Menu &menu); | 352 | void removeConfigMenu(FbTk::Menu &menu); |
353 | 353 | ||
354 | 354 | ||
355 | /// Adds a resource to managed resource list | ||
356 | /// This resource is now owned by Screen and will be destroyed | ||
357 | /// when screen dies | ||
358 | void addManagedResource(FbTk::Resource_base *resource); | ||
355 | 359 | ||
356 | class ScreenSubject:public FbTk::Subject { | 360 | class ScreenSubject:public FbTk::Subject { |
357 | public: | 361 | public: |
@@ -445,6 +449,9 @@ private: | |||
445 | 449 | ||
446 | } resource; | 450 | } resource; |
447 | 451 | ||
452 | /// Holds manage resources that screen destroys | ||
453 | FbTk::ResourceManager::ResourceList m_managed_resources; | ||
454 | |||
448 | FbTk::ResourceManager &m_resource_manager; | 455 | FbTk::ResourceManager &m_resource_manager; |
449 | const std::string m_name, m_altname; | 456 | const std::string m_name, m_altname; |
450 | 457 | ||