]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove GTK2 specific prototypes from wx/include/gtk1. wx/gtk1/hdr into the header...
authorMart Raudsepp <leio@gentoo.org>
Mon, 23 Jan 2006 02:28:01 +0000 (02:28 +0000)
committerMart Raudsepp <leio@gentoo.org>
Mon, 23 Jan 2006 02:28:01 +0000 (02:28 +0000)
hdr

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

62 files changed:
include/wx/gtk1/accel.h
include/wx/gtk1/app.h
include/wx/gtk1/bitmap.h
include/wx/gtk1/bmpbuttn.h
include/wx/gtk1/brush.h
include/wx/gtk1/button.h
include/wx/gtk1/checkbox.h
include/wx/gtk1/checklst.h
include/wx/gtk1/choice.h
include/wx/gtk1/clipbrd.h
include/wx/gtk1/colordlg.h
include/wx/gtk1/colour.h
include/wx/gtk1/combobox.h
include/wx/gtk1/control.h
include/wx/gtk1/cursor.h
include/wx/gtk1/dataform.h
include/wx/gtk1/dataobj.h
include/wx/gtk1/dataobj2.h
include/wx/gtk1/dc.h
include/wx/gtk1/dcclient.h
include/wx/gtk1/dcmemory.h
include/wx/gtk1/dcscreen.h
include/wx/gtk1/dialog.h
include/wx/gtk1/dnd.h
include/wx/gtk1/filedlg.h
include/wx/gtk1/font.h
include/wx/gtk1/fontdlg.h
include/wx/gtk1/frame.h
include/wx/gtk1/gauge.h
include/wx/gtk1/gdiobj.h
include/wx/gtk1/glcanvas.h
include/wx/gtk1/icon.h
include/wx/gtk1/listbox.h
include/wx/gtk1/mdi.h
include/wx/gtk1/menu.h
include/wx/gtk1/menuitem.h
include/wx/gtk1/minifram.h
include/wx/gtk1/notebook.h
include/wx/gtk1/pen.h
include/wx/gtk1/popupwin.h
include/wx/gtk1/private.h
include/wx/gtk1/radiobox.h
include/wx/gtk1/radiobut.h
include/wx/gtk1/region.h
include/wx/gtk1/scrolbar.h
include/wx/gtk1/scrolwin.h
include/wx/gtk1/slider.h
include/wx/gtk1/spinbutt.h
include/wx/gtk1/spinctrl.h
include/wx/gtk1/statbmp.h
include/wx/gtk1/statbox.h
include/wx/gtk1/statline.h
include/wx/gtk1/stattext.h
include/wx/gtk1/tbargtk.h
include/wx/gtk1/textctrl.h
include/wx/gtk1/tglbtn.h
include/wx/gtk1/timer.h
include/wx/gtk1/tooltip.h
include/wx/gtk1/toplevel.h
include/wx/gtk1/treectrl.h
include/wx/gtk1/win_gtk.h
include/wx/gtk1/window.h

index 035a0fd38ced98eb16c34be8424e026c09ada02a..62cf892ef31b89fb4b2a712de39e7d13a5a92377 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/accel.h
+// Name:        wx/gtk1/accel.h
 // Purpose:     wxAcceleratorTable redirection file
 // Author:      Julian Smart
 // Modified by:
index c5e991ba0e5c19cf10c102fdf8e334f5293a02eb..27c5e7faafd1082b8a020dee4d85edb413831020 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/app.h
+// Name:        wx/gtk1/app.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -54,7 +54,7 @@ public:
 
     gint            m_idleTag;
     void RemoveIdleTag();
-    
+
     unsigned char  *m_colorCube;
 
     // Used by the the wxGLApp and wxGLCanvas class for GL-based X visual
@@ -64,7 +64,7 @@ public:
     // This returns the current visual: either that used by wxRootWindow
     // or the XVisualInfo* for SGI.
     GdkVisual      *GetGdkVisual();
-    
+
 private:
     // true if we're inside an assert modal dialog
 #ifdef __WXDEBUG__
index 0e74b7a631e1ea3ef8aa2a4ef70988d049bb80fd..8168c9a9d8c435e86ef8cc3d0dd6aea536f1c590 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/bitmap.h
+// Name:        wx/gtk1/bitmap.h
 // Purpose:
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
 #include "wx/palette.h"
 #include "wx/gdiobj.h"
 
-#ifdef __WXGTK20__
-typedef struct _GdkPixbuf GdkPixbuf;
-#endif
-
 class WXDLLEXPORT wxPixelDataBase;
 
 //-----------------------------------------------------------------------------
@@ -118,17 +114,10 @@ public:
     void SetDepth( int depth );
     void SetPixmap( GdkPixmap *pixmap );
     void SetBitmap( GdkBitmap *bitmap );
-#ifdef __WXGTK20__
-    void SetPixbuf(GdkPixbuf *pixbuf);
-#endif
 
     GdkPixmap *GetPixmap() const;
     GdkBitmap *GetBitmap() const;
     bool HasPixmap() const;
-#ifdef __WXGTK20__
-    bool HasPixbuf() const;
-    GdkPixbuf *GetPixbuf() const;
-#endif
 
     // Basically, this corresponds to Win32 StretchBlt()
     wxBitmap Rescale( int clipx, int clipy, int clipwidth, int clipheight, int width, int height );
@@ -149,20 +138,6 @@ private:
     bool CreateFromImageAsBitmap(const wxImage& image);
     bool CreateFromImageAsPixmap(const wxImage& image);
 
-#ifdef __WXGTK20__
-    bool CreateFromImageAsPixbuf(const wxImage& image);
-
-    enum Representation
-    {
-        Pixmap,
-        Pixbuf
-    };
-    // removes other representations from memory, keeping only 'keep'
-    // (wxBitmap may keep same bitmap e.g. as both pixmap and pixbuf):
-    void PurgeOtherRepresentations(Representation keep);
-
-    friend class wxMemoryDC;
-#endif
     friend class wxBitmapHandler;
 
 private:
index a6a6bc1b51ea88cb3c921932e141bf68a16b5ec5..046987058733b9b482963b8017ae4f4095c35396 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/bmpbutton.h
+// Name:        wx/gtk1/bmpbutton.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 911a4783fa3cbcc03f20c820f4587211c99b09ec..ecdfe463981e55686594dcba1ce547b08e321546 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/brush.h
+// Name:        wx/gtk1/brush.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 95c74f0da3005e89afb9f74d22f3952ce8f881eb..aa5fe7b18fb8592e147c78125ec84c975c9e45ea 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/button.h
+// Name:        wx/gtk1/button.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -67,7 +67,7 @@ public:
     // Since this wxButton doesn't derive from wxButtonBase (why?) we need
     // to override this here too...
     virtual bool ShouldInheritColours() const { return false; }
-    
+
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
 
index 555a708d26956d024700e6c9173dc4cc92a6fbe4..386a1bcb12efc810ae51b995e3b101cab5557d38 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/checkbox.h
+// Name:        wx/gtk1/checkbox.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -43,7 +43,7 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
     // implementation
     // --------------
 
@@ -59,11 +59,6 @@ public:
 protected:
     virtual wxSize DoGetBestSize() const;
 
-#ifdef __WXGTK20__
-    void DoSet3StateValue(wxCheckBoxState state);
-    wxCheckBoxState DoGet3StateValue() const;
-#endif
-
 private:
     DECLARE_DYNAMIC_CLASS(wxCheckBox)
 };
index a1766e7bb626198e0af027f1ac999716ab01ca9d..3bd0b0f1c01d8ed7079f367b3526d1293be3c93b 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        checklst.h
+// Name:        wx/gtk1/checklst.h
 // Purpose:     wxCheckListBox class
 // Author:      Robert Roebling
 // Modified by:
@@ -52,7 +52,7 @@ public:
     void Check( int index, bool check = TRUE );
 
     int GetItemHeight() const;
-    
+
 private:
     DECLARE_DYNAMIC_CLASS(wxCheckListBox)
 };
index 5b0526a275934749668a4025be8b9649bbfb9aea..e8fc3a7f167e3bb787e1190d563f2f07d8aca6ac 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/choice.h
+// Name:        wx/gtk1/choice.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index e3a2371bb58acbbb9cb95a992bdd788f97c56b78..8d17cdc6f43a0baea4825aab1acc1677e30a8799 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        clipboard.h
+// Name:        wx/gtk1/clipboard.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -57,7 +57,7 @@ public:
     // primary == FALSE resets it.
     virtual void UsePrimarySelection(bool primary = TRUE)
         { m_usePrimary = primary; }
-    
+
     // implementation from now on
     bool              m_open;
     bool              m_ownsClipboard;
index 107b3ca9ed8c7a8d0977a737be4b3882a24fee07..5c20ca2e627b0de839c7f26887bb8142199ad732 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/colordlg.h
+// Name:        wx/gtk1/colordlg.h
 // Purpose:     wxColourDialog
 // Author:      Vaclav Slavik
 // Modified by:
@@ -44,7 +44,7 @@ protected:
     // copy data between the dialog and m_colourData:
     void ColourDataToDialog();
     void DialogToColourData();
-    
+
     wxColourData m_data;
 
     DECLARE_DYNAMIC_CLASS(wxColourDialog)
index e168cb381045d1f929b3eb1fbdb0f8d3bc1d6b8a..dab437e7b318efd90d76d9d44ad6514e44317561 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/colour.h
+// Name:        wx/gtk1/colour.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 4f551834ed58ee9415b301b28cd7a4dd4a634152..d4e6df33cde839cab181cea312ac73232c02937e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/combobox.h
+// Name:        wx/gtk1/combobox.h
 // Purpose:
 // Author:      Robert Roebling
 // Created:     01/02/97
index 42e48726bfd212cdc2ba7a3fc3811c036fd78b4d..a579a27492eb47066256e3d9cb929d72d08833bb 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        control.h
+// Name:        wx/gtk1/control.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index a9964a07f8ecaab17fb64a54e90ebfae8343bd52..67eabdb5de910f48d805a098f73dda5023318fcd 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        cursor.h
+// Name:        wx/gtk1/cursor.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 3b66e3117a399ce538a0408a7e12023e1a7af83d..5cb61dce26dd7847aae2f7177b26c5f06b03c575 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/dataform.h
+// Name:        wx/gtk1/dataform.h
 // Purpose:     declaration of the wxDataFormat class
 // Author:      Vadim Zeitlin
 // Modified by:
index 2623777643e3755a400d9a562835a98f55c76611..0f7710847331c97bc0754a83e024214b7b838b9d 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/dataobj.h
+// Name:        wx/gtk1/dataobj.h
 // Purpose:     declaration of the wxDataObject
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
index f612ffaf7dba39abb659159711ab93a91c3480ff..9672274e2f7edbc0d03e5a19536f13bd883d23c7 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        gtk/dataobj2.h
+// Name:        wx/gtk1/dataobj2.h
 // Purpose:     declaration of standard wxDataObjectSimple-derived classes
 // Author:      Robert Roebling
 // Created:     19.10.99 (extracted from gtk/dataobj.h)
index daf2bdc1ecbbd0adb59c935492d6982bb34eb716..f7023538ab8c7987c3b6e7357ea20a1cacf15abd 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/dc.h
+// Name:        wx/gtk1/dc.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 4cc62a0e4c00dfd18622ccf5b90535356a9f704d..94cdb1d83d324df949bea4779392ff4dfa9f54fc 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcclient.h
+// Name:        wx/gtk1/dcclient.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -115,13 +115,6 @@ public:
     wxRegion      m_currentClippingRegion;
     wxRegion      m_paintClippingRegion;
 
-    // PangoContext stuff for GTK 2.0
-#ifdef __WXGTK20__
-    PangoContext *m_context;
-    PangoLayout *m_layout;
-    PangoFontDescription *m_fontdesc;
-#endif
-
     void SetUpDC();
     void Destroy();
     virtual void ComputeScaleAndOrigin();
index 93bfb09883a55cd0627de7d9275560f05a1747ed..d4f5f4875f4fd7acb597a6904316dcb2970fec5d 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcmemory.h
+// Name:        wx/gtk1/dcmemory.h
 // Purpose:
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
index 3b23ae32046a2a3b41b32ab49b77b09e09c670a7..07a976c72169a372a6ac5929073dcd80d3e71ef3 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dcscreen.h
+// Name:        wx/gtk1/dcscreen.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 46e0074dfdd469ffecc9c8dae962c9d736a2ff2d..6aac74cb964cd606ed20dec390e945c6e9e50d0c 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        dialog.h
+// Name:        wx/gtk1/dialog.h
 // Purpose:
 // Author:      Robert Roebling
 // Created:
index 13a381f50e57b2e3f158b75aaa5170fcd4547978..988ef117f158dc08ba16513337df1f657a154786 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        dnd.h
+// Name:        wx/gtk1/dnd.h
 // Purpose:     declaration of the wxDropTarget class
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
index 44a07faa5a210b761ab6b4763331e8f0d7c7eb59..e4859f6e08a543edb442afcf2e0d68525ecbbe69 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        filedlg.h
+// Name:        wx/gtk1/filedlg.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 2d12659dc4a970b23260a0e3abfde9c814179203..3f7611781f4a914fb987b1f008bdc3933ff278a6 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        font.h
+// Name:        wx/gtk1/font.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -97,9 +97,7 @@ public:
     // implementation from now on
     void Unshare();
 
-#ifndef __WXGTK20__
     GdkFont* GetInternalFont(float scale = 1.0) const;
-#endif
 
     // no data :-)
 
index 9f3e37f2ecc474156c1645a0d14cd905ba307418..3a9366edcec083facb39aef75e1a0ff3cf1ba4be 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        fontdlgg.h
+// Name:        wx/gtk1/fontdlgg.h
 // Purpose:     wxFontDialog
 // Author:      Robert Roebling
 // Created:
index 94949f2d67cdb0e8cd3c24891e017af7efb4554e..49d68c88055b16bf918a417abda230ec70885470 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/frame.h
+// Name:        wx/gtk1/frame.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -60,7 +60,7 @@ public:
                                          long style = wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
                                          wxWindowID id = 0,
                                          const wxString& name = wxStatusLineNameStr);
-                                         
+
     void SetStatusBar(wxStatusBar *statbar);
 #endif // wxUSE_STATUSBAR
 
@@ -70,7 +70,7 @@ public:
                                      const wxString& name = wxToolBarNameStr);
     void SetToolBar(wxToolBar *toolbar);
 #endif // wxUSE_TOOLBAR
-    
+
     wxPoint GetClientAreaOrigin() const { return wxPoint(0, 0); }
 
     // implementation from now on
index 6b967c3bc8f844a46fd765e025e5546b9897b268..0f41210a76ca7ca7335586a275fd3598047e0291 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        gauge.h
+// Name:        wx/gtk1/gauge.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -71,10 +71,10 @@ public:
     int GetValue() const;
 
     bool IsVertical() const { return HasFlag(wxGA_VERTICAL); }
-    
+
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
     // implementation
     // -------------
 
index ffc2b72c20a9dc26cc4e18e8a5e07b28d213b3c9..4a35500f3ff85e66b5c054b179fb15e00c945311 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        gdiobj.h
+// Name:        wx/gtk1/gdiobj.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 9619864f944f0945b2df70ea94be7754a4fe145d..1dd103cfc1d590a6e5b222606330a3c9dd9afc8f 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        glcanvas.h
+// Name:        wx/gtk1/glcanvas.h
 // Purpose:     wxGLCanvas, for using OpenGL/Mesa with wxWidgets and GTK
 // Author:      Robert Roebling
 // Modified by:
index 00e65f06e624251e519915eb46267a8bcfd357fe..38019ae2ef796dfb43d485c1add664dbfa393e8c 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        icon.h
+// Name:        wx/gtk1/icon.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index be7a4e444d07434b7cfe1cbe58e338d242c8d39c..4b74c4e7b6b7e08d074bdca3699d6a7f80016b69 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/listbox.h
+// Name:        wx/gtk1/listbox.h
 // Purpose:     wxListBox class declaration
 // Author:      Robert Roebling
 // Id:          $Id$
index 38f7b63d6cb5ab9db41b25d22650cd0977e49cee..eee60c70296b05328b8f94f3a46d89acefb4a192 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/mdi.h
+// Name:        wx/gtk1/mdi.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 9a2d3a80f91a5dfe66836bb0be7291638e19b5e1..afc6828886d87c23e21653cbe849a8b00e2fbda1 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/menu.h
+// Name:        wx/gtk1/menu.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -44,9 +44,7 @@ public:
     // common part of Append and Insert
     bool GtkAppend(wxMenu *menu, const wxString& title, int pos=-1);
 
-#ifndef __WXGTK20__
     GtkAccelGroup   *m_accel;
-#endif
     GtkWidget       *m_menubar;
     long             m_style;
     wxWindow        *m_invokingWindow;
index e73231828592a40b13e43195f4af6390455fa648..19a3a045a5c89b6d3137ae588f20404c92463a9a 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        menuitem.h
+// Name:        wx/gtk1/menuitem.h
 // Purpose:     wxMenuItem class
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
index c8f07a0836f77dee30b78219309934eba1cdfccf..3d1bcee39670c474b4638536256f6ff781c04494 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        minifram.h
+// Name:        wx/gtk1/minifram.h
 // Purpose:     wxMiniFrame class
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
@@ -54,7 +54,7 @@ public:
 
     virtual void SetTitle( const wxString &title );
  // implementation
+
     bool   m_isDragging;
     int    m_oldX,m_oldY;
     int    m_diffX,m_diffY;
index 2921c3583cc819fa3b6393d0a75e5ea14ea91030..27eccbbe23c8b5e012c9af44b7579ecd5617bd2d 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        notebook.h
+// Name:        wx/gtk1/notebook.h
 // Purpose:     wxNotebook class
 // Author:      Robert Roebling
 // Modified by:
index 2c6b707d734d7703d811d0e7ccf8df037d254e40..aef98775637fe05f364d68339e4f346ce990d980 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/pen.h
+// Name:        wx/gtk1/pen.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -22,7 +22,7 @@
 
 class WXDLLIMPEXP_CORE wxPen;
 
-#if defined(__WXGTK127__) || defined(__WXGTK20__)
+#if defined(__WXGTK127__)
 typedef    gint8 wxGTKDash;
 #else
 typedef    gchar wxGTKDash;
index aa4f6579827afcf2039b659bb64d7c9c13d1ba62..fad5e8239f0f377cfc1d003e67ffa4a2d2240989 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        popupwin.h
+// Name:        wx/gtk1/popupwin.h
 // Purpose:
 // Author:      Robert Roebling
 // Created:
index 3fe0527aaae79277674269049327b1d36325ddea..753c7508f20b5ece3d4bb9d2d719cf1d90a02cbc 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/private.h
+// Name:        wx/gtk1/private.h
 // Purpose:     wxGTK private macros, functions &c
 // Author:      Vadim Zeitlin
 // Modified by:
     #define GTK_CHECK_VERSION(a, b, c) 0
 #endif
 
-#ifdef __WXGTK20__
-#if wxUSE_UNICODE
-    #define wxGTK_CONV(s) wxConvUTF8.cWX2MB(s)
-    #define wxGTK_CONV_BACK(s) wxConvUTF8.cMB2WX(s)
-#else
-    #define wxGTK_CONV(s) wxConvUTF8.cWC2MB( wxConvLocal.cWX2WC(s) )
-    #define wxGTK_CONV_BACK(s)  wxConvLocal.cWC2WX( (wxConvUTF8.cMB2WC( s ) ) )
-#endif
-#else
-    #define wxGTK_CONV(s) s.c_str()
-    #define wxGTK_CONV_BACK(s) s
-#endif
+#define wxGTK_CONV(s) s.c_str()
+#define wxGTK_CONV_BACK(s) s
 
 
-// GTK+ 2.0 compatibility define is broken when used from C++ as it
-// casts enum to int implicitly
-#ifdef __WXGTK20__
-    #undef gtk_signal_disconnect_by_func
-    #define gtk_signal_disconnect_by_func(object,func,data) \
-        gtk_signal_compat_matched((object), (func), (data), \
-                                  (GSignalMatchType)(G_SIGNAL_MATCH_FUNC | \
-                                                     G_SIGNAL_MATCH_DATA), 0)
-#endif
-
 // child is not a member of GTK_BUTTON() any more in GTK+ 2.0
-#ifdef __WXGTK20__
-    #define BUTTON_CHILD(w) GTK_BIN((w))->child
-#else
-    #define BUTTON_CHILD(w) GTK_BUTTON((w))->child
-#endif
+#define BUTTON_CHILD(w) GTK_BUTTON((w))->child
 
 // event_window has disappeared from GtkToggleButton in GTK+ 2.0
-#ifdef __WXGTK20__
-    #define TOGGLE_BUTTON_EVENT_WIN(w) GTK_BUTTON((w))->event_window
-#else
-    #define TOGGLE_BUTTON_EVENT_WIN(w) GTK_TOGGLE_BUTTON((w))->event_window
-#endif
+#define TOGGLE_BUTTON_EVENT_WIN(w) GTK_TOGGLE_BUTTON((w))->event_window
 
 // gtk_editable_{copy|cut|paste}_clipboard() had an extra argument under
 // previous GTK+ versions but no more
     #define DUMMY_CLIPBOARD_ARG  ,0
 #endif
 
-// _GtkEditable is now private
-#ifdef __WXGTK20__
-    #define GET_EDITABLE_POS(w) gtk_editable_get_position(GTK_EDITABLE(w))
-    #define SET_EDITABLE_POS(w, pos) \
-        gtk_editable_set_position(GTK_EDITABLE(w), (pos))
-#else
-    #define GET_EDITABLE_POS(w) GTK_EDITABLE((w))->current_pos
-    #define SET_EDITABLE_POS(w, pos) \
-        GTK_EDITABLE((w))->current_pos = (pos)
-#endif
+// _GtkEditable is private in GTK2
+#define GET_EDITABLE_POS(w) GTK_EDITABLE((w))->current_pos
+#define SET_EDITABLE_POS(w, pos) \
+    GTK_EDITABLE((w))->current_pos = (pos)
 
-// this GtkNotebook struct field has been renamed
-#ifdef __WXGTK20__
-    #define NOTEBOOK_PANEL(nb)  GTK_NOTEBOOK(nb)->event_window
-#else
-    #define NOTEBOOK_PANEL(nb)  GTK_NOTEBOOK(nb)->panel
-#endif
+// this GtkNotebook struct field has been renamed in GTK2
+#define NOTEBOOK_PANEL(nb)  GTK_NOTEBOOK(nb)->panel
 
-#ifdef __WXGTK20__
-    #define SCROLLBAR_CBACK_ARG
-    #define GET_SCROLL_TYPE(w)   GTK_SCROLL_JUMP
-#else
-    #define SCROLLBAR_CBACK_ARG
-    #define GET_SCROLL_TYPE(w)   GTK_RANGE((w))->scroll_type
-#endif
+#define SCROLLBAR_CBACK_ARG
+#define GET_SCROLL_TYPE(w)   GTK_RANGE((w))->scroll_type
 
 // translate a GTK+ scroll type to a wxEventType
 inline wxEventType GtkScrollTypeToWx(guint scrollType)
@@ -135,11 +92,6 @@ inline wxEventType GtkScrollWinTypeToWx(guint scrollType)
 void wxAddGrab(wxWindow* window);
 void wxRemoveGrab(wxWindow* window);
 
-#ifdef __WXGTK20__
-// Escapes string so that it is valid Pango markup XML string:
-WXDLLIMPEXP_CORE wxString wxEscapeStringForPangoMarkup(const wxString& str);
-#endif
-
 // The declaration for gtk_icon_size_lookup was accidentally ifdefed out in
 // GTK+ 2.1.0 which Sun seem to have shipped with some versions of JDS
 // for Solaris 9 x86.
index f4a0bb123ce2ec07707f14fbdebbfa3d0b8e7520..4e45065d229b04a3f8daa9e9c0fa769de06a9622 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/radiobox.h
+// Name:        wx/gtk1/radiobox.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 9a54dffa626515468d1c0d45f255150b02916401..28cc8343857b44e0ea5b7e4425fcd561f4d399a7 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/radiobut.h
+// Name:        wx/gtk1/radiobut.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index f9925be044cbaaa5a56711dd47bfe8e1f06a9c9d..5319f14975c6bd1f5d894cc17fae8ce82ee20c5a 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/region.h
+// Name:        wx/gtk1/region.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index fd3b78ace35167b1cbb99774536ae92204442e1f..9ddd84763e9180bc262562493604b2eeb464be70 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        scrolbar.h
+// Name:        wx/gtk1/scrolbar.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -65,7 +65,7 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
     // implementation
     // --------------
 
index 92ecc160d7ff302fb2321239b8d385a225b108f6..4142805d1afaa18071a479b92d701d95874a141b 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/scrolwin.h
+// Name:        wx/gtk1/scrolwin.h
 // Purpose:     wxScrolledWindow class
 // Author:      Robert Roebling
 // Modified by: Vadim Zeitlin (2005-10-10): wxScrolledWindow is now common
index 2b048f99799a924a0ff51a056178801c19fb438a..1132e88eb5e94eaf3f33ea39d89cbf1f52330c59 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/slider.h
+// Name:        wx/gtk1/slider.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -58,7 +58,7 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
     // implementation
     bool IsOwnGtkWindow( GdkWindow *window );
     void GtkDisableEvents();
index 7444e0732aefc2ade4ea6c09ebf7d8a76e842755..c9b6f385e1d59829057496c5bf68c4c2a0e6c971 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/spinbutt.h
+// Name:        wx/gtk1/spinbutt.h
 // Purpose:     wxSpinButton class
 // Author:      Robert Roebling
 // Modified by:
@@ -44,7 +44,7 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
     // implementation
     void OnSize( wxSizeEvent &event );
 
index 50a65db8fc3103b697a509c56e9c1953808318c1..3237b1eeeea6cc2687160c1e5ea040886396e7a7 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        spinctrl.h
+// Name:        wx/gtk1/spinctrl.h
 // Purpose:     wxSpinCtrl class
 // Author:      Robert Roebling
 // Modified by:
@@ -57,10 +57,10 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
     // implementation
     void OnChar( wxKeyEvent &event );
-    
+
     bool IsOwnGtkWindow( GdkWindow *window );
     void GtkDisableEvents();
     void GtkEnableEvents();
index d1194eb19379d9d93c87e65c17ac190fba9b15d5..0e7243052258f086365045fa49ffc1d486dd2d0b 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/statbmp.h
+// Name:        wx/gtk1/statbmp.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -49,7 +49,7 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
 private:
     wxBitmap   m_bitmap;
 
index 67e0a8e21de9069fa9a49b470311d6c96b2406ef..400f56377e40a8eedd14b7caf5bd60f4bed3a2bf 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/stabox.h
+// Name:        wx/gtk1/stabox.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -44,7 +44,7 @@ public:
 
 protected:
     void DoApplyWidgetStyle(GtkRcStyle *style);
-    
+
 private:
     DECLARE_DYNAMIC_CLASS(wxStaticBox)
 };
index cbf78700424771c6cda173178542c3b0de04a672..a0d212b6929b31c1522a9be673eb29804b16f11e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/statline.h
+// Name:        wx/gtk1/statline.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index c17c4105912d5cd4ace1559db88c74753b7bfbc6..4c4c1105075641f53390c62c856516a27df31e5e 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        stattext.h
+// Name:        wx/gtk1/stattext.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -37,7 +37,7 @@ public:
                  wxWindowID id,
                  const wxString &label,
                  const wxPoint &pos = wxDefaultPosition,
-                 const wxSize &size = wxDefaultSize, 
+                 const wxSize &size = wxDefaultSize,
                  long style = 0,
                  const wxString &name = wxStaticTextNameStr );
 
@@ -45,7 +45,7 @@ public:
                 wxWindowID id,
                 const wxString &label,
                 const wxPoint &pos = wxDefaultPosition,
-                const wxSize &size = wxDefaultSize, 
+                const wxSize &size = wxDefaultSize,
                 long style = 0,
                 const wxString &name = wxStaticTextNameStr );
 
@@ -57,7 +57,7 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
     // see wx/stattext.h
     void Wrap(int width);
 
@@ -68,7 +68,7 @@ protected:
     virtual void DoSetSize(int x, int y,
                            int width, int height,
                            int sizeFlags = wxSIZE_AUTO);
-                           
+
     virtual wxSize DoGetBestSize() const;
 
     DECLARE_DYNAMIC_CLASS(wxStaticText)
index 0b688d0ffaa1bdae6b4bc2c36fd985a7fdabbe83..5891f42aa510d3a16910a15f6167044c65274200 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        tbargtk.h
+// Name:        wx/gtk1/tbargtk.h
 // Purpose:     GTK toolbar
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
@@ -54,7 +54,7 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
-    
+
     // implementation from now on
     // --------------------------
 
index 7e54c5f218466b2d1f1582cae9a3110dd5abcd8e..29158f1e42faeed7118de81ff5c66d6111919411 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/textctrl.h
+// Name:        wx/gtk1/textctrl.h
 // Purpose:
 // Author:      Robert Roebling
 // Created:     01/02/97
@@ -86,16 +86,6 @@ public:
 
     virtual void ShowPosition(long pos);
 
-#ifdef __WXGTK20__
-    virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const;
-    virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt,
-                                            wxTextCoord *col,
-                                            wxTextCoord *row) const
-    {
-        return wxTextCtrlBase::HitTest(pt, col, row);
-    }
-#endif // __WXGTK20__
-
     // Clipboard operations
     virtual void Copy();
     virtual void Cut();
@@ -145,12 +135,8 @@ public:
     void CalculateScrollbar();
     void OnInternalIdle();
 
-#ifdef __WXGTK20__
-    void SetUpdateFont(bool WXUNUSED(update)) { }
-#else // !__WXGTK20__
     void SetUpdateFont(bool update) { m_updateFont = update; }
     void UpdateFontIfNeeded();
-#endif // __WXGTK20__/!__WXGTK20__
 
     void SetModified() { m_modified = true; }
 
@@ -196,11 +182,6 @@ protected:
     // override this and return true.
     virtual bool UseGTKStyleBase() const { return true; }
 
-#ifdef __WXGTK20__
-    // has the control been frozen by Freeze()?
-    bool IsFrozen() const { return m_frozenness > 0; }
-#endif
-
 private:
     // change the font for everything in this control
     void ChangeFontGlobally();
@@ -210,25 +191,9 @@ private:
 
     bool        m_modified:1;
     bool        m_vScrollbarVisible:1;
-#ifndef __WXGTK20__
     bool        m_updateFont:1;
-#endif // !__WXGTK20__
     bool        m_ignoreNextUpdate:1;
 
-#ifdef __WXGTK20__
-    // Our text buffer. Convenient, and holds the buffer while using
-    // a dummy one when m_frozenness > 0
-    GtkTextBuffer *m_buffer;
-
-    // number of calls to Freeze() minus number of calls to Thaw()
-    unsigned int m_frozenness;
-
-    // For wxTE_AUTO_URL
-    void OnUrlMouseEvent(wxMouseEvent&);
-    GdkCursor *m_gdkHandCursor;
-    GdkCursor *m_gdkXTermCursor;
-#endif
-
     DECLARE_EVENT_TABLE()
     DECLARE_DYNAMIC_CLASS(wxTextCtrl)
 };
index 50d981942abda254249a719f0df00c3736904321..b4c143d457448c8b5a71cd158da95226ff360e38 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/tglbtn.h
+// Name:        wx/gtk1/tglbtn.h
 // Purpose:     Declaration of the wxToggleButton class, which implements a
 //              toggle button under wxGTK.
 // Author:      John Norris, minor changes by Axel Schlueter
@@ -125,7 +125,7 @@ public:
 
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
     // implementation
     bool m_blockEvent;
 
index f35a07a7f862361443e0d8f2be963a3f11403eb0..ec715f932ca117dad36229fd09944d48376a37f6 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/timer.h
+// Name:        wx/gtk1/timer.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index f79618899a01608b6f433a7badd6e2b7e9f17e96..d5666edefb1730f788a1a6b5ba47f434f185c8da 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        tooltip.h
+// Name:        wx/gtk1/tooltip.h
 // Purpose:     wxToolTip class
 // Author:      Robert Roebling
 // Id:          $Id$
index 2729119b501694b6884457f080a02e2d475b2fde..beeb8635f72c0449af9c9d1ad1370f65bc6fe65b 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/toplevel.h
+// Name:        wx/gtk1/toplevel.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
index 280b08ea3a5f7f96144b88360e92bc68eaa07d8f..3e177c70cbbab79c2f633bbef5176f1e8aedb6e5 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        treectrl.h
+// Name:        wx/gtk1/treectrl.h
 // Purpose:     wxTreeCtrl class
 // Author:      Denis Pershin
 // Modified by:
index 1ade9a1ae647b912c497ff135a1f66bb77b8fde5..78cbe0b531ae327c91656096207425be697c8b76 100644 (file)
@@ -1,5 +1,5 @@
 /* ///////////////////////////////////////////////////////////////////////////
-// Name:        win_gtk.h
+// Name:        wx/gtk1/win_gtk.h
 // Purpose:     wxWidgets's GTK base widget = GtkPizza
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -19,9 +19,7 @@ extern "C" {
 #include <gdk/gdkx.h>
 #include <gtk/gtkcontainer.h>
 #include <gtk/gtkadjustment.h>
-#ifndef __WXGTK20__
 #include <gtk/gtkfeatures.h>
-#endif
 
 #include "wx/dlimpexp.h"
 
index e3ea31dc2f88faef943ec84611537f3fde6b7899..4ed4c68ea037e7cfa8c3a80565d5a218389619ac 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/gtk/window.h
+// Name:        wx/gtk1/window.h
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -108,11 +108,6 @@ public:
     virtual void SetDropTarget( wxDropTarget *dropTarget );
 #endif // wxUSE_DRAG_AND_DROP
 
-#ifdef __WXGTK20__
-    virtual void AddChild( wxWindowBase *child );
-    virtual void RemoveChild( wxWindowBase *child );
-#endif
-
     // implementation
     // --------------
 
@@ -160,11 +155,6 @@ public:
     virtual bool IsOwnGtkWindow( GdkWindow *window );
     void ConnectWidget( GtkWidget *widget );
 
-#ifdef __WXGTK20__
-    // Returns the default context which usually is anti-aliased
-    PangoContext   *GtkGetPangoDefaultContext();
-#endif
-
 #if wxUSE_TOOLTIPS
     virtual void ApplyToolTip( GtkTooltips *tips, const wxChar *tip );
 #endif // wxUSE_TOOLTIPS
@@ -201,21 +191,15 @@ public:
     // this widget will be queried for GTK's focus events
     GtkWidget           *m_focusWidget;
 
-#ifdef __WXGTK20__
-    wxGtkIMData         *m_imData;
-#else // GTK 1
 #ifdef HAVE_XIM
     // XIM support for wxWidgets
     GdkIC               *m_ic;
     GdkICAttr           *m_icattr;
 #endif // HAVE_XIM
-#endif // GTK 2/1
 
-#ifndef __WXGTK20__
     // The area to be cleared (and not just refreshed)
     // We cannot make this distinction under GTK 2.0.
     wxRegion             m_clearRegion;
-#endif
 
     // scrolling stuff
     GtkAdjustment       *m_hAdjust,*m_vAdjust;
@@ -234,10 +218,6 @@ public:
     bool                 m_hasFocus:1;          // true if == FindFocus()
     bool                 m_isScrolling:1;       // dragging scrollbar thumb?
     bool                 m_clipPaintRegion:1;   // true after ScrollWindow()
-#ifdef __WXGTK20__
-    bool                 m_dirtyTabOrder:1;     // tab order changed, GTK focus
-                                                // chain needs update
-#endif
     bool                 m_needsStyleChange:1;  // May not be able to change
                                                 // background style until OnIdle
 
@@ -269,13 +249,6 @@ protected:
     // common part of all ctors (not virtual because called from ctor)
     void Init();
 
-#ifdef __WXGTK20__
-    virtual void DoMoveInTabOrder(wxWindow *win, MoveKind move);
-
-    // Copies m_children tab order to GTK focus chain:
-    void RealizeTabOrder();
-#endif
-
     // Called by ApplyWidgetStyle (which is called by SetFont() and
     // SetXXXColour etc to apply style changed to native widgets) to create
     // modified GTK style with non-standard attributes. If forceStyle=true,