#
-# This file was automatically generated by tmake at 18:34, 1999/11/01
+# This file was automatically generated by tmake at 16:44, 1999/11/05
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
#
filesys.h \
font.h \
fontdlg.h \
+ fontenum.h \
+ fontmap.h \
+ fontutil.h \
frame.h \
fs_inet.h \
fs_zip.h \
scrolwin.o \
splitter.o \
statusbr.o \
+ tabg.o \
textdlgg.o \
tipdlg.o \
treectrl.o \
scrolwin.d \
splitter.d \
statusbr.d \
+ tabg.d \
textdlgg.d \
tipdlg.d \
treectrl.d \
filefn.o \
filesys.o \
fontcmn.o \
+ fontmap.o \
framecmn.o \
fs_inet.o \
fs_zip.o \
filefn.d \
filesys.d \
fontcmn.d \
+ fontmap.d \
framecmn.d \
fs_inet.d \
fs_zip.d \
filefn.o \
filesys.o \
fontcmn.o \
+ fontmap.o \
framecmn.o \
fs_inet.o \
fs_zip.o \
filefn.d \
filesys.d \
fontcmn.d \
+ fontmap.d \
framecmn.d \
fs_inet.d \
fs_zip.d \
filefn.o \
filesys.o \
fontcmn.o \
+ fontmap.o \
framecmn.o \
fs_inet.o \
fs_zip.o \
filefn.d \
filesys.d \
fontcmn.d \
+ fontmap.d \
framecmn.d \
fs_inet.d \
fs_zip.d \
filedlg.o \
font.o \
fontdlg.o \
+ fontutil.o \
frame.o \
gauge95.o \
gdiobj.o \
filedlg.d \
font.d \
fontdlg.d \
+ fontutil.d \
frame.d \
gauge95.d \
gdiobj.d \
UNIX_OBJS = \
dialup.o \
fontenum.o \
+ fontutil.o \
gsocket.o \
threadpsx.o \
utilsunx.o
UNIX_DEPS = \
dialup.d \
fontenum.d \
+ fontutil.d \
gsocket.d \
threadpsx.d \
utilsunx.d
filefn.h W
filesys.h W
font.h W
-fontdlg.h W
+fontenum.h W
fontmap.h W
+fontdlg.h W
fontutil.h W
frame.h W
fs_inet.h W
virtual void Maximize() { }
virtual void Restore() { }
+ virtual bool IsTopLevel() const { return TRUE; }
+
// implementation
virtual void GtkOnSize( int x, int y, int width, int height );
virtual void Restore();
virtual void Iconize( bool iconize );
virtual bool IsIconized() const;
+
+ virtual bool IsTopLevel() const { return TRUE; }
virtual void Command( int id );
class wxMDIParentFrame: public wxFrame
{
- DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
-
- friend class wxMDIChildFrame;
-
public:
-
wxMDIParentFrame();
wxMDIParentFrame( wxWindow *parent,
- wxWindowID id, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr );
- ~wxMDIParentFrame(void);
- bool Create( wxWindow *parent,
- wxWindowID id, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr );
-
+ wxWindowID id, const wxString& title,
+ const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
+ const wxString& name = wxFrameNameStr );
+ ~wxMDIParentFrame(void);
+ bool Create( wxWindow *parent,
+ wxWindowID id, const wxString& title,
+ const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
+ const wxString& name = wxFrameNameStr );
void GetClientSize(int *width, int *height) const;
wxMDIChildFrame *GetActiveChild() const;
virtual void GtkOnSize( int x, int y, int width, int height );
virtual void OnInternalIdle();
- DECLARE_EVENT_TABLE()
+private:
+ friend class wxMDIChildFrame;
+
+ DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
+ DECLARE_EVENT_TABLE()
};
//-----------------------------------------------------------------------------
class wxMDIChildFrame: public wxFrame
{
- DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
-
- public:
-
+public:
wxMDIChildFrame();
wxMDIChildFrame( wxMDIParentFrame *parent,
wxWindowID id, const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr );
- virtual void SetMenuBar( wxMenuBar *menu_bar );
- virtual wxMenuBar *GetMenuBar() const;
+ virtual void SetMenuBar( wxMenuBar *menu_bar );
+ virtual wxMenuBar *GetMenuBar() const;
- virtual void GetClientSize( int *width, int *height ) const;
- virtual void AddChild( wxWindowBase *child );
+ virtual void GetClientSize( int *width, int *height ) const;
+ virtual void AddChild( wxWindowBase *child );
- virtual void Activate();
+ virtual void Activate();
#if wxUSE_STATUSBAR
// no status bars
- virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number) = 1,
+ virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number) = 1,
long WXUNUSED(style) = 1,
wxWindowID WXUNUSED(id) = 1,
const wxString& WXUNUSED(name) = wxEmptyString)
- { return (wxStatusBar*)NULL; }
+ { return (wxStatusBar*)NULL; }
- virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; }
- virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
- virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
+ virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; }
+ virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
+ virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
#endif
// no size hints
- virtual void SetSizeHints( int WXUNUSED(minW), int WXUNUSED(minH),
+ virtual void SetSizeHints( int WXUNUSED(minW), int WXUNUSED(minH),
int WXUNUSED(maxW), int WXUNUSED(maxH),
int WXUNUSED(incW), int WXUNUSED(incH) ) {}
#if wxUSE_TOOLBAR
// no toolbar bars
- virtual wxToolBar* CreateToolBar( long WXUNUSED(style), wxWindowID WXUNUSED(id),
- const wxString& WXUNUSED(name) ) { return (wxToolBar*)NULL; }
- virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; }
+ virtual wxToolBar* CreateToolBar( long WXUNUSED(style), wxWindowID WXUNUSED(id),
+ const wxString& WXUNUSED(name) ) { return (wxToolBar*)NULL; }
+ virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; }
#endif
// no icon
- void SetIcon( const wxIcon &icon ) { m_icon = icon; }
+ void SetIcon( const wxIcon &icon ) { m_icon = icon; }
// no title
- void SetTitle( const wxString &title ) { m_title = title; }
- wxString GetTitle() const { return m_title; }
+ void SetTitle( const wxString &title ) { m_title = title; }
+ wxString GetTitle() const { return m_title; }
// no maximize etc
- virtual void Maximize( bool WXUNUSED(maximize) ) {}
- virtual void Restore() {}
+ virtual void Maximize( bool WXUNUSED(maximize) ) {}
+ virtual void Restore() {}
- void OnActivate( wxActivateEvent &event );
+ virtual bool IsTopLevel() const { return FALSE; }
+
+ void OnActivate( wxActivateEvent &event );
// implementation
GtkNotebookPage *m_page;
bool m_justInserted;
- DECLARE_EVENT_TABLE()
+private:
+ DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
};
//-----------------------------------------------------------------------------
class wxMDIClientWindow: public wxWindow
{
- DECLARE_DYNAMIC_CLASS(wxMDIClientWindow)
-
public:
-
wxMDIClientWindow();
wxMDIClientWindow( wxMDIParentFrame *parent, long style = 0 );
~wxMDIClientWindow();
virtual bool CreateClient( wxMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL );
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxMDIClientWindow)
};
#endif // __MDIH__
virtual void Maximize() { }
virtual void Restore() { }
+ virtual bool IsTopLevel() const { return TRUE; }
+
// implementation
virtual void GtkOnSize( int x, int y, int width, int height );
virtual void Restore();
virtual void Iconize( bool iconize );
virtual bool IsIconized() const;
+
+ virtual bool IsTopLevel() const { return TRUE; }
virtual void Command( int id );
class wxMDIParentFrame: public wxFrame
{
- DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
-
- friend class wxMDIChildFrame;
-
public:
-
wxMDIParentFrame();
wxMDIParentFrame( wxWindow *parent,
- wxWindowID id, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr );
- ~wxMDIParentFrame(void);
- bool Create( wxWindow *parent,
- wxWindowID id, const wxString& title,
- const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
- long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
- const wxString& name = wxFrameNameStr );
-
+ wxWindowID id, const wxString& title,
+ const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
+ const wxString& name = wxFrameNameStr );
+ ~wxMDIParentFrame(void);
+ bool Create( wxWindow *parent,
+ wxWindowID id, const wxString& title,
+ const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
+ const wxString& name = wxFrameNameStr );
void GetClientSize(int *width, int *height) const;
wxMDIChildFrame *GetActiveChild() const;
virtual void GtkOnSize( int x, int y, int width, int height );
virtual void OnInternalIdle();
- DECLARE_EVENT_TABLE()
+private:
+ friend class wxMDIChildFrame;
+
+ DECLARE_DYNAMIC_CLASS(wxMDIParentFrame)
+ DECLARE_EVENT_TABLE()
};
//-----------------------------------------------------------------------------
class wxMDIChildFrame: public wxFrame
{
- DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
-
- public:
-
+public:
wxMDIChildFrame();
wxMDIChildFrame( wxMDIParentFrame *parent,
wxWindowID id, const wxString& title,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr );
- virtual void SetMenuBar( wxMenuBar *menu_bar );
- virtual wxMenuBar *GetMenuBar() const;
+ virtual void SetMenuBar( wxMenuBar *menu_bar );
+ virtual wxMenuBar *GetMenuBar() const;
- virtual void GetClientSize( int *width, int *height ) const;
- virtual void AddChild( wxWindowBase *child );
+ virtual void GetClientSize( int *width, int *height ) const;
+ virtual void AddChild( wxWindowBase *child );
- virtual void Activate();
+ virtual void Activate();
#if wxUSE_STATUSBAR
// no status bars
- virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number) = 1,
+ virtual wxStatusBar* CreateStatusBar( int WXUNUSED(number) = 1,
long WXUNUSED(style) = 1,
wxWindowID WXUNUSED(id) = 1,
const wxString& WXUNUSED(name) = wxEmptyString)
- { return (wxStatusBar*)NULL; }
+ { return (wxStatusBar*)NULL; }
- virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; }
- virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
- virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
+ virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; }
+ virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
+ virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
#endif
// no size hints
- virtual void SetSizeHints( int WXUNUSED(minW), int WXUNUSED(minH),
+ virtual void SetSizeHints( int WXUNUSED(minW), int WXUNUSED(minH),
int WXUNUSED(maxW), int WXUNUSED(maxH),
int WXUNUSED(incW), int WXUNUSED(incH) ) {}
#if wxUSE_TOOLBAR
// no toolbar bars
- virtual wxToolBar* CreateToolBar( long WXUNUSED(style), wxWindowID WXUNUSED(id),
- const wxString& WXUNUSED(name) ) { return (wxToolBar*)NULL; }
- virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; }
+ virtual wxToolBar* CreateToolBar( long WXUNUSED(style), wxWindowID WXUNUSED(id),
+ const wxString& WXUNUSED(name) ) { return (wxToolBar*)NULL; }
+ virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; }
#endif
// no icon
- void SetIcon( const wxIcon &icon ) { m_icon = icon; }
+ void SetIcon( const wxIcon &icon ) { m_icon = icon; }
// no title
- void SetTitle( const wxString &title ) { m_title = title; }
- wxString GetTitle() const { return m_title; }
+ void SetTitle( const wxString &title ) { m_title = title; }
+ wxString GetTitle() const { return m_title; }
// no maximize etc
- virtual void Maximize( bool WXUNUSED(maximize) ) {}
- virtual void Restore() {}
+ virtual void Maximize( bool WXUNUSED(maximize) ) {}
+ virtual void Restore() {}
- void OnActivate( wxActivateEvent &event );
+ virtual bool IsTopLevel() const { return FALSE; }
+
+ void OnActivate( wxActivateEvent &event );
// implementation
GtkNotebookPage *m_page;
bool m_justInserted;
- DECLARE_EVENT_TABLE()
+private:
+ DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
};
//-----------------------------------------------------------------------------
class wxMDIClientWindow: public wxWindow
{
- DECLARE_DYNAMIC_CLASS(wxMDIClientWindow)
-
public:
-
wxMDIClientWindow();
wxMDIClientWindow( wxMDIParentFrame *parent, long style = 0 );
~wxMDIClientWindow();
virtual bool CreateClient( wxMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL );
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxMDIClientWindow)
};
#endif // __MDIH__
virtual bool IsIconized() const;
+ virtual bool IsTopLevel() const { return TRUE; }
+
void SetTitle(const wxString& title);
wxString GetTitle() const ;
void SetTitle(const wxString& title);
wxString GetTitle() const { return m_title; }
+ virtual bool IsTopLevel() const { return TRUE; }
+
void Centre(int direction = wxBOTH);
// Call this to simulate a menu command
virtual void Activate();
virtual bool IsIconized() const ;
+ virtual bool IsTopLevel() const { return FALSE; }
+
// Is the frame maximized? Returns TRUE for
// wxMDIChildFrame due to the tabbed implementation.
virtual bool IsMaximized(void) const ;
virtual bool IsIconized() const;
void Fit();
+ virtual bool IsTopLevel() const { return TRUE; }
+
void SetTitle(const wxString& title);
wxString GetTitle() const ;
// Compatibility
bool Iconized() const { return IsIconized(); }
+ virtual bool IsTopLevel() const { return TRUE; }
+
virtual void Maximize(bool maximize);
// virtual bool LoadAccelerators(const wxString& table);
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr);
+ virtual bool IsTopLevel() const { return FALSE; }
+
// MDI operations
virtual void Maximize(bool maximize = TRUE);
virtual void Restore();
inline wxWindow *GetGrandParent() const;
// is this window a top level one?
- bool IsTopLevel() const;
+ virtual bool IsTopLevel() const;
// it doesn't really change parent, use ReParent() instead
void SetParent( wxWindowBase *parent ) { m_parent = (wxWindow *)parent; }
m_canvasFont = *wxNORMAL_FONT;
// Create the main frame window
- MyFrame *frame = new MyFrame((wxFrame *) NULL, (char *) "wxWindows dialogs example", wxPoint(50, 50), wxSize(400, 300));
+ MyFrame *frame = new MyFrame((wxFrame *) NULL, (char *) "wxWindows dialogs example", wxPoint(20, 20), wxSize(400, 300));
// Make a menubar
wxMenu *file_menu = new wxMenu;
bool wxWindowBase::IsTopLevel() const
{
- return wxDynamicCast(this, wxFrame) || wxDynamicCast(this, wxDialog);
+ return FALSE;
}
// ----------------------------------------------------------------------------
if (g_isIdle)
wxapp_install_idle_handler();
- // FIXME I don't know when does it appear, but it's not in 1.2.2
-#if GTK_CHECK_VERSION(1, 2, 3)
/* I haven't been able to set the position of
the dialog before it is shown, so I set the
position in "realize" */
- gtk_window_reposition( GTK_WINDOW(widget), win->m_x, win->m_y );
-#endif // GTK > 1.2.2
+ gtk_widget_set_uposition( widget, win->m_x, win->m_y );
/* all this is for Motif Window Manager "hints" and is supposed to be
recognized by other WM as well. not tested. */
gtk_window_set_policy(GTK_WINDOW(win->m_widget), 1, 1, 1);
/* set size hints */
- gint flag = GDK_HINT_POS;
+ gint flag = 0; // GDK_HINT_POS;
if ((win->GetMinWidth() != -1) || (win->GetMinHeight() != -1)) flag |= GDK_HINT_MIN_SIZE;
if ((win->GetMaxWidth() != -1) || (win->GetMaxHeight() != -1)) flag |= GDK_HINT_MAX_SIZE;
if (flag)
if ((m_maxWidth != -1) && (m_width > m_maxWidth)) m_width = m_maxWidth;
if ((m_maxHeight != -1) && (m_height > m_maxHeight)) m_height = m_maxHeight;
- // FIXME I don't know when does it appear, but it's not in 1.2.2
-#if GTK_CHECK_VERSION(1, 2, 3)
if ((m_x != -1) || (m_y != -1))
{
if ((m_x != old_x) || (m_y != old_y))
{
/* we set the position here and when showing the dialog
for the first time in idle time */
- gtk_window_reposition( GTK_WINDOW(m_widget), m_x, m_y );
+ gtk_widget_set_uposition( m_widget, m_x, m_y );
}
}
-#endif // GTK > 1.2.2
if ((m_width != old_width) || (m_height != old_height))
{
if (g_isIdle)
wxapp_install_idle_handler();
- // FIXME I don't know when does it appear, but it's not in 1.2.2
-#if GTK_CHECK_VERSION(1, 2, 3)
/* I haven't been able to set the position of
the dialog before it is shown, so I set the
position in "realize" */
- wxLogDebug( "%d %d\n", win->m_x, win->m_y );
- gtk_window_reposition( GTK_WINDOW(widget), win->m_x, win->m_y );
-#endif // GTK > 1.2.2
+ gtk_widget_set_uposition( widget, win->m_x, win->m_y );
/* all this is for Motif Window Manager "hints" and is supposed to be
recognized by other WM as well. not tested. */
gtk_window_set_policy(GTK_WINDOW(win->m_widget), 1, 1, 1);
/* set size hints */
- gint flag = GDK_HINT_POS;
+ gint flag = 0; // GDK_HINT_POS;
if ((win->GetMinWidth() != -1) || (win->GetMinHeight() != -1)) flag |= GDK_HINT_MIN_SIZE;
if ((win->GetMaxWidth() != -1) || (win->GetMaxHeight() != -1)) flag |= GDK_HINT_MAX_SIZE;
if (flag)
if ((m_maxWidth != -1) && (m_width > m_maxWidth)) m_width = m_maxWidth;
if ((m_maxHeight != -1) && (m_height > m_maxHeight)) m_height = m_maxHeight;
- // FIXME I don't know when does it appear, but it's not in 1.2.2
-#if GTK_CHECK_VERSION(1, 2, 3)
if ((m_x != -1) || (m_y != -1))
{
if ((m_x != old_x) || (m_y != old_y))
{
- gtk_window_reposition( GTK_WINDOW(m_widget), m_x, m_y );
+ gtk_widget_set_uposition( m_widget, m_x, m_y );
}
}
-#endif // GTK > 1.2.2
if ((m_width != old_width) || (m_height != old_height))
{
#if (GTK_MINOR_VERSION > 0)
wxWindow *top_frame = win;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
/* support for native hot keys */
#if (GTK_MINOR_VERSION > 0)
wxWindow *top_frame = win;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
/* support for native hot keys */
m_invokingWindow = win;
#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0)
wxWindow *top_frame = win;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
/* support for native key accelerators indicated by underscroes */
m_invokingWindow = (wxWindow*) NULL;
#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0)
wxWindow *top_frame = win;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
/* support for native key accelerators indicated by underscroes */
if ((key_event.KeyCode() == WXK_RETURN) && !(m_windowStyle & wxTE_MULTILINE))
{
wxWindow *top_frame = m_parent;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
GtkWindow *window = GTK_WINDOW(top_frame->m_widget);
if (g_isIdle)
wxapp_install_idle_handler();
- // FIXME I don't know when does it appear, but it's not in 1.2.2
-#if GTK_CHECK_VERSION(1, 2, 3)
/* I haven't been able to set the position of
the dialog before it is shown, so I set the
position in "realize" */
- gtk_window_reposition( GTK_WINDOW(widget), win->m_x, win->m_y );
-#endif // GTK > 1.2.2
+ gtk_widget_set_uposition( widget, win->m_x, win->m_y );
/* all this is for Motif Window Manager "hints" and is supposed to be
recognized by other WM as well. not tested. */
gtk_window_set_policy(GTK_WINDOW(win->m_widget), 1, 1, 1);
/* set size hints */
- gint flag = GDK_HINT_POS;
+ gint flag = 0; // GDK_HINT_POS;
if ((win->GetMinWidth() != -1) || (win->GetMinHeight() != -1)) flag |= GDK_HINT_MIN_SIZE;
if ((win->GetMaxWidth() != -1) || (win->GetMaxHeight() != -1)) flag |= GDK_HINT_MAX_SIZE;
if (flag)
if ((m_maxWidth != -1) && (m_width > m_maxWidth)) m_width = m_maxWidth;
if ((m_maxHeight != -1) && (m_height > m_maxHeight)) m_height = m_maxHeight;
- // FIXME I don't know when does it appear, but it's not in 1.2.2
-#if GTK_CHECK_VERSION(1, 2, 3)
if ((m_x != -1) || (m_y != -1))
{
if ((m_x != old_x) || (m_y != old_y))
{
/* we set the position here and when showing the dialog
for the first time in idle time */
- gtk_window_reposition( GTK_WINDOW(m_widget), m_x, m_y );
+ gtk_widget_set_uposition( m_widget, m_x, m_y );
}
}
-#endif // GTK > 1.2.2
if ((m_width != old_width) || (m_height != old_height))
{
if (g_isIdle)
wxapp_install_idle_handler();
- // FIXME I don't know when does it appear, but it's not in 1.2.2
-#if GTK_CHECK_VERSION(1, 2, 3)
/* I haven't been able to set the position of
the dialog before it is shown, so I set the
position in "realize" */
- wxLogDebug( "%d %d\n", win->m_x, win->m_y );
- gtk_window_reposition( GTK_WINDOW(widget), win->m_x, win->m_y );
-#endif // GTK > 1.2.2
+ gtk_widget_set_uposition( widget, win->m_x, win->m_y );
/* all this is for Motif Window Manager "hints" and is supposed to be
recognized by other WM as well. not tested. */
gtk_window_set_policy(GTK_WINDOW(win->m_widget), 1, 1, 1);
/* set size hints */
- gint flag = GDK_HINT_POS;
+ gint flag = 0; // GDK_HINT_POS;
if ((win->GetMinWidth() != -1) || (win->GetMinHeight() != -1)) flag |= GDK_HINT_MIN_SIZE;
if ((win->GetMaxWidth() != -1) || (win->GetMaxHeight() != -1)) flag |= GDK_HINT_MAX_SIZE;
if (flag)
if ((m_maxWidth != -1) && (m_width > m_maxWidth)) m_width = m_maxWidth;
if ((m_maxHeight != -1) && (m_height > m_maxHeight)) m_height = m_maxHeight;
- // FIXME I don't know when does it appear, but it's not in 1.2.2
-#if GTK_CHECK_VERSION(1, 2, 3)
if ((m_x != -1) || (m_y != -1))
{
if ((m_x != old_x) || (m_y != old_y))
{
- gtk_window_reposition( GTK_WINDOW(m_widget), m_x, m_y );
+ gtk_widget_set_uposition( m_widget, m_x, m_y );
}
}
-#endif // GTK > 1.2.2
if ((m_width != old_width) || (m_height != old_height))
{
#if (GTK_MINOR_VERSION > 0)
wxWindow *top_frame = win;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
/* support for native hot keys */
#if (GTK_MINOR_VERSION > 0)
wxWindow *top_frame = win;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
/* support for native hot keys */
m_invokingWindow = win;
#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0)
wxWindow *top_frame = win;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
/* support for native key accelerators indicated by underscroes */
m_invokingWindow = (wxWindow*) NULL;
#if (GTK_MINOR_VERSION > 0) && (GTK_MICRO_VERSION > 0)
wxWindow *top_frame = win;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
/* support for native key accelerators indicated by underscroes */
if ((key_event.KeyCode() == WXK_RETURN) && !(m_windowStyle & wxTE_MULTILINE))
{
wxWindow *top_frame = m_parent;
- while (top_frame->GetParent() && !(top_frame->GetParent()->m_isFrame))
+ while (top_frame->GetParent() && !(top_frame->IsTopLevel()))
top_frame = top_frame->GetParent();
GtkWindow *window = GTK_WINDOW(top_frame->m_widget);