]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/private.cpp
fixing dangling includes
[wxWidgets.git] / src / gtk / private.cpp
index 3f421fbb2c626364819ff8b1ba9d39a384407469..795b4b0667cd6d5e3d005522cd29cf40b3a2fc1d 100644 (file)
@@ -78,6 +78,24 @@ GtkWidget *GetCheckButtonWidget()
     return s_button;
 }
 
+GtkWidget * GetComboBoxWidget()
+{
+    static GtkWidget *s_button = NULL;
+    static GtkWidget *s_window = NULL;
+
+    if ( !s_button )
+    {
+        s_window = gtk_window_new( GTK_WINDOW_POPUP );
+        gtk_widget_realize( s_window );
+        s_button = gtk_combo_box_new();
+        gtk_container_add( GTK_CONTAINER(s_window), s_button );
+        gtk_widget_realize( s_button );
+    }
+
+    return s_button;
+}
+
+
 GtkWidget *GetEntryWidget()
 {
     static GtkWidget *s_entry = NULL;
@@ -112,6 +130,23 @@ GtkWidget *GetHeaderButtonWidget()
     return s_button;
 }
 
+GtkWidget * GetRadioButtonWidget()
+{
+    static GtkWidget *s_button = NULL;
+    static GtkWidget *s_window = NULL;
+
+    if ( !s_button )
+    {
+        s_window = gtk_window_new( GTK_WINDOW_POPUP );
+        gtk_widget_realize( s_window );
+        s_button = gtk_radio_button_new(NULL);
+        gtk_container_add( GTK_CONTAINER(s_window), s_button );
+        gtk_widget_realize( s_button );
+    }
+
+    return s_button;
+}
+
 GtkWidget* GetSplitterWidget()
 {
     static GtkWidget* widget;
@@ -126,6 +161,23 @@ GtkWidget* GetSplitterWidget()
     return widget;
 }
 
+GtkWidget * GetTextEntryWidget()
+{
+    static GtkWidget *s_button = NULL;
+    static GtkWidget *s_window = NULL;
+
+    if ( !s_button )
+    {
+        s_window = gtk_window_new( GTK_WINDOW_POPUP );
+        gtk_widget_realize( s_window );
+        s_button = gtk_entry_new();
+        gtk_container_add( GTK_CONTAINER(s_window), s_button );
+        gtk_widget_realize( s_button );
+    }
+
+    return s_button;
+}
+
 GtkWidget *GetTreeWidget()
 {
     static GtkWidget *s_tree = NULL;