]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/private.cpp
fix warnings about unreachable return statements
[wxWidgets.git] / src / gtk / private.cpp
index 08ebaae77e28a4432fc425c45239028337440061..7b7003705f53e0fca4e4da78df937281898fb4eb 100644 (file)
@@ -64,6 +64,20 @@ GtkWidget *GetButtonWidget()
     return s_button;
 }
 
+GtkWidget *GetNotebookWidget()
+{
+    static GtkWidget *s_notebook = NULL;
+
+    if ( !s_notebook )
+    {
+        s_notebook = gtk_notebook_new();
+        gtk_container_add(GetContainer(), s_notebook);
+        gtk_widget_realize(s_notebook);
+    }
+
+    return s_notebook;
+}
+
 GtkWidget *GetCheckButtonWidget()
 {
     static GtkWidget *s_button = NULL;