X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fwidgetbase.hh;h=d83075747e18ab8abdd6d4218c5f18b4676a2403;hb=80a42d2b0c0831e99b2b5547e8ddc0122796d78a;hp=591f150dd8dc6e88e1b01edfd4bc3704af6abc76;hpb=c8e246f8de5af9963b22cc104d22ca10772028dd;p=chaz%2Fopenbox diff --git a/src/widgetbase.hh b/src/widgetbase.hh index 591f150d..d8307574 100644 --- a/src/widgetbase.hh +++ b/src/widgetbase.hh @@ -1,12 +1,12 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- -#ifndef __obwidgetbase_hh -#define __obwidgetbase_hh +#ifndef __widgetbase_hh +#define __widgetbase_hh #include "python.hh" namespace ob { -class OBWidget { +class WidgetBase { public: enum WidgetType { Type_Frame, @@ -17,7 +17,7 @@ public: Type_MaximizeButton, Type_CloseButton, Type_IconifyButton, - Type_StickyButton, + Type_AllDesktopsButton, Type_LeftGrip, Type_RightGrip, Type_Client, @@ -28,7 +28,7 @@ private: WidgetType _type; public: - OBWidget(WidgetType type) : _type(type) {} + WidgetBase(WidgetType type) : _type(type) {} inline WidgetType type() const { return _type; } @@ -50,8 +50,8 @@ public: return MC_CloseButton; case Type_IconifyButton: return MC_IconifyButton; - case Type_StickyButton: - return MC_StickyButton; + case Type_AllDesktopsButton: + return MC_AllDesktopsButton; case Type_LeftGrip: return MC_Grip; case Type_RightGrip: @@ -68,4 +68,4 @@ public: } -#endif // __obwidgetbase_hh +#endif // __widgetbase_hh