summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-11-16 22:17:40 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-11-16 22:17:40 +0000
commitffbe1b76b1d8ed8e25430f75fc8621858f0432be (patch)
treec88593e6fef65df18ba07122b922833bade833e0 /FL
parente91fe6e6d5931953f558345e17e269e5432e956f (diff)
Fixed xclass support for Fl_Window (STR #2053)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7863 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Window.H12
1 files changed, 8 insertions, 4 deletions
diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H
index c9dd1af08..721d10289 100644
--- a/FL/Fl_Window.H
+++ b/FL/Fl_Window.H
@@ -57,11 +57,13 @@ class Fl_X;
*/
class FL_EXPORT Fl_Window : public Fl_Group {
+ static char *default_xclass_;
+
friend class Fl_X;
Fl_X *i; // points at the system-specific stuff
const char* iconlabel_;
- const char* xclass_;
+ char* xclass_;
const void* icon_;
// size_range stuff:
int minw, minh, maxw, maxh;
@@ -323,8 +325,10 @@ public:
/** Sets the icon label. */
void label(const char* label, const char* iconlabel); // platform dependent
void copy_label(const char* a);
- /** See void Fl_Window::xclass(const char*) */
- const char* xclass() const {return xclass_;}
+
+ static void default_xclass(const char*);
+ static const char *default_xclass();
+ const char* xclass() const;
/**
A string used to tell the system what type of window this is. Mostly
this identifies the picture to draw in the icon. <I>Under X, this is
@@ -339,7 +343,7 @@ public:
visible effect. The passed pointer is stored unchanged. The string
is not copied.
*/
- void xclass(const char* c) {xclass_ = c;}
+ void xclass(const char* c);
/** Gets the current icon window target dependent data. */
const void* icon() const {return icon_;}
/** Sets the current icon window target dependent data. */