+#ifdef __WXGTK3__
+ s_first_button = gtk_tree_view_column_get_button(column);
+#else
+ s_first_button = column->button;
+#endif
+ wxASSERT(s_first_button);
+
+ column = gtk_tree_view_column_new();
+ gtk_tree_view_append_column(GTK_TREE_VIEW(treewidget), column);
+#ifdef __WXGTK3__
+ s_other_button = gtk_tree_view_column_get_button(column);
+#else
+ s_other_button = column->button;
+#endif
+
+ column = gtk_tree_view_column_new();
+ gtk_tree_view_append_column(GTK_TREE_VIEW(treewidget), column);
+#ifdef __WXGTK3__
+ s_last_button = gtk_tree_view_column_get_button(column);
+#else
+ s_last_button = column->button;
+#endif
+}
+
+GtkWidget *GetHeaderButtonWidgetFirst()
+{
+ if (!s_first_button)
+ CreateHeaderButtons();
+
+ return s_first_button;
+}
+
+GtkWidget *GetHeaderButtonWidgetLast()
+{
+ if (!s_last_button)
+ CreateHeaderButtons();
+
+ return s_last_button;
+}
+
+GtkWidget *GetHeaderButtonWidget()
+{
+ if (!s_other_button)
+ CreateHeaderButtons();
+
+ return s_other_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 );