]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/commands.cpp
GTK: wrap gtk_list_store_{append,set}
[xonotic/netradiant.git] / radiant / commands.cpp
index cf9c68ce8c3efad75fd5299a0377751da70ec403..70aa49752c87bd653b26652ac8fa1202ed340238 100644 (file)
@@ -441,11 +441,7 @@ public:
                                        StringOutputStream modifiers;
                                        modifiers << accelerator;
 
-                                       {
-                                               GtkTreeIter iter;
-                                               gtk_list_store_append( m_store, &iter );
-                                               gtk_list_store_set( m_store, &iter, 0, name, 1, modifiers.c_str(), 2, false, 3, 800, -1 );
-                                       }
+                                       m_store.append(0, name, 1, modifiers.c_str(), 2, false, 3, 800);
 
                                        if ( !m_commandList.failed() ) {
                                                int l = strlen( name );