]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/preferences.cpp
Wrap more GTK
[xonotic/netradiant.git] / radiant / preferences.cpp
index ea993de5e6b1cbcae7bb3f80d26bec4f6e0ed7a6..4c3e0e15df3609a69194c757ac3fb8d2487a8d48 100644 (file)
@@ -716,7 +716,7 @@ ui::Window PrefsDlg::BuildDialog(){
                                gtk_scrolled_window_set_shadow_type( GTK_SCROLLED_WINDOW( sc_win ), GTK_SHADOW_IN );
 
                                // prefs pages notebook
-                               m_notebook = ui::Widget(gtk_notebook_new());
+                               m_notebook = ui::Widget::from(gtk_notebook_new());
                                // hide the notebook tabs since its not supposed to look like a notebook
                                gtk_notebook_set_show_tabs( GTK_NOTEBOOK( m_notebook ), FALSE );
                                hbox.pack_start( m_notebook, TRUE, TRUE, 0 );
@@ -724,9 +724,9 @@ ui::Window PrefsDlg::BuildDialog(){
 
 
                                {
-                                       auto store = ui::TreeStore(gtk_tree_store_new( 2, G_TYPE_STRING, G_TYPE_POINTER ));
+                                       auto store = ui::TreeStore::from(gtk_tree_store_new( 2, G_TYPE_STRING, G_TYPE_POINTER ));
 
-                                       auto view = ui::TreeView(ui::TreeModel(store));
+                                       auto view = ui::TreeView(ui::TreeModel::from(store._handle));
                                        gtk_tree_view_set_headers_visible(view, FALSE );
 
                                        {
@@ -736,7 +736,7 @@ ui::Window PrefsDlg::BuildDialog(){
                                        }
 
                                        {
-                                               auto selection = ui::TreeSelection(gtk_tree_view_get_selection(view ));
+                                               auto selection = ui::TreeSelection::from(gtk_tree_view_get_selection(view));
                                                selection.connect( "changed", G_CALLBACK( treeSelection ), this );
                                        }