X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5549fa6559b3e4fdb975df6b4abd253279ed5351..d8f2439cebed3b4b30c8978ecd2c2ffbb5d645c8:/src/gtk1/notebook.cpp diff --git a/src/gtk1/notebook.cpp b/src/gtk1/notebook.cpp index 2eb7a24f51..ccb0e81623 100644 --- a/src/gtk1/notebook.cpp +++ b/src/gtk1/notebook.cpp @@ -149,7 +149,7 @@ gtk_notebook_key_press_callback( GtkWidget *widget, GdkEventKey *gdk_event, wxNo if (g_blockEventsOnDrag) return FALSE; - if (!notebook->HasVMT()) return FALSE; + if (!notebook->m_hasVMT) return FALSE; /* this code makes jumping down from the handles of the notebooks to the actual items in the visible notebook page possible with @@ -267,9 +267,7 @@ bool wxNotebook::Create(wxWindow *parent, wxWindowID id, GTK_SIGNAL_FUNC(gtk_notebook_page_change_callback), (gpointer)this ); - m_parent->AddChild( this ); - - (m_parent->m_insertCallback)( m_parent, this ); + m_parent->DoAddChild( this ); gtk_signal_connect( GTK_OBJECT(m_widget), "key_press_event", GTK_SIGNAL_FUNC(gtk_notebook_key_press_callback), (gpointer)this ); @@ -707,6 +705,12 @@ void wxNotebook::ApplyWidgetStyle() gtk_widget_set_style( m_widget, m_widgetStyle ); } +bool wxNotebook::IsOwnGtkWindow( GdkWindow *window ) +{ + return ((m_widget->window == window) || + (GTK_NOTEBOOK(m_widget)->panel == window)); +} + //----------------------------------------------------------------------------- // wxNotebookEvent //-----------------------------------------------------------------------------