X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8759560f8c3d47d51abca114d3ef475c6b13529..74a3342702bf3a76a845f65f4510fd8612d3d802:/src/gtk/private.cpp diff --git a/src/gtk/private.cpp b/src/gtk/private.cpp index 3f421fbb2c..795b4b0667 100644 --- a/src/gtk/private.cpp +++ b/src/gtk/private.cpp @@ -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;