]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/notebook.cpp
GTK2: gtk_widget_draw -> gtk_widget_queue_draw + gdk_window_process_updates. Do we...
[wxWidgets.git] / src / gtk / notebook.cpp
index edbe25ce678136b3036d56f78a307045194ffa7e..e0bb675723879ca58d07b0d670a5d7ebb528fdd4 100644 (file)
@@ -441,7 +441,7 @@ bool wxNotebook::SetPageText( size_t page, const wxString &text )
 
     nb_page->m_text = text;
 
-    gtk_label_set( nb_page->m_label, wxGTK_CONV( nb_page->m_text ) );
+    gtk_label_set_text( nb_page->m_label, wxGTK_CONV( nb_page->m_text ) );
 
     return TRUE;
 }
@@ -830,7 +830,7 @@ void wxNotebook::DoApplyWidgetStyle(GtkRcStyle *style)
 bool wxNotebook::IsOwnGtkWindow( GdkWindow *window )
 {
     return ((m_widget->window == window) ||
-            (NOTEBOOK_PANEL(m_widget) == window));
+            GTK_NOTEBOOK(m_widget)->event_window == window);
 }
 
 // static