diff options
author | fluxgen <fluxgen> | 2006-02-19 12:50:01 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-02-19 12:50:01 (GMT) |
commit | 6d42d1cf5ed7d4ae6b3941727bf17cb6b48defd4 (patch) | |
tree | 44e9885bbea7777ca2729ce51964b9fed3f0763d /src/ScreenResources.cc | |
parent | 98209ba704e047c8f8f7df08fbb5849e3294cc68 (diff) | |
download | fluxbox_pavel-6d42d1cf5ed7d4ae6b3941727bf17cb6b48defd4.zip fluxbox_pavel-6d42d1cf5ed7d4ae6b3941727bf17cb6b48defd4.tar.bz2 |
Added center resize. Resizes all corners at the same time.
Diffstat (limited to 'src/ScreenResources.cc')
-rw-r--r-- | src/ScreenResources.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ScreenResources.cc b/src/ScreenResources.cc index f26a376..7a58914 100644 --- a/src/ScreenResources.cc +++ b/src/ScreenResources.cc | |||
@@ -58,6 +58,8 @@ std::string FbTk::Resource<BScreen::ResizeModel>::getString() const { | |||
58 | return std::string("Quadrant"); | 58 | return std::string("Quadrant"); |
59 | case BScreen::BOTTOMRESIZE: | 59 | case BScreen::BOTTOMRESIZE: |
60 | return std::string("Bottom"); | 60 | return std::string("Bottom"); |
61 | case BScreen::CENTERRESIZE: | ||
62 | return std::string("Center"); | ||
61 | } | 63 | } |
62 | 64 | ||
63 | return std::string("Default"); | 65 | return std::string("Default"); |
@@ -70,6 +72,8 @@ setFromString(char const *strval) { | |||
70 | m_value = BScreen::BOTTOMRESIZE; | 72 | m_value = BScreen::BOTTOMRESIZE; |
71 | } else if (strcasecmp(strval, "Quadrant") == 0) { | 73 | } else if (strcasecmp(strval, "Quadrant") == 0) { |
72 | m_value = BScreen::QUADRANTRESIZE; | 74 | m_value = BScreen::QUADRANTRESIZE; |
75 | } else if (strcasecmp(strval, "Center") == 0) { | ||
76 | m_value = BScreen::CENTERRESIZE; | ||
73 | } else | 77 | } else |
74 | m_value = BScreen::DEFAULTRESIZE; | 78 | m_value = BScreen::DEFAULTRESIZE; |
75 | } | 79 | } |