Committing in .

Update OpenVMS compile support

 Modified Files:
 	wxWindows/setup.h_vms wxWindows/src/common/descrip.mms
 	wxWindows/src/generic/descrip.mms
 	wxWindows/src/generic/notebook.cpp
 	wxWindows/src/gtk/notebook.cpp wxWindows/src/univ/descrip.mms
 	wxWindows/src/univ/notebook.cpp
 ----------------------------------------------------------------------


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jouk Jansen
2003-09-01 14:47:00 +00:00
parent da31cbc4ef
commit 1cc4f822d3
8 changed files with 30 additions and 27 deletions

View File

@@ -614,10 +614,13 @@ bool wxNotebook::InsertPage( size_t position,
gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
if (position < 0)
#ifndef __VMS
// On VMS position is unsigned and thus always positive
if (position < 0)
gtk_notebook_append_page( notebook, win->m_widget, nb_page->m_box );
else
gtk_notebook_insert_page( notebook, win->m_widget, nb_page->m_box, position );
#endif
gtk_notebook_insert_page( notebook, win->m_widget, nb_page->m_box, position );
nb_page->m_page = (GtkNotebookPage*) g_list_last(notebook->children)->data;
@@ -654,10 +657,13 @@ bool wxNotebook::InsertPage( size_t position,
gtk_widget_show( GTK_WIDGET(nb_page->m_label) );
if (select && (m_pagesData.GetCount() > 1))
{
#ifndef __VMS
// On VMS position is unsigned and thus always positive
if (position < 0)
SetSelection( GetPageCount()-1 );
else
SetSelection( position );
#endif
SetSelection( position );
}
gtk_signal_connect( GTK_OBJECT(m_widget), "switch_page",