]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/textureentry.cpp
Wrap more GTK
[xonotic/netradiant.git] / radiant / textureentry.cpp
index 96a46dcda1d31a1b11d70a794c9c9a6c9e0dc2a6..6e6e9de827e69f1721cb0f9d037494e8c60d299e 100644 (file)
@@ -43,9 +43,7 @@ void EntryCompletion<StringList>::connect(ui::Entry entry)
 template<class StringList>
 void EntryCompletion<StringList>::append(const char *string)
 {
-    GtkTreeIter iter;
-    gtk_list_store_append(m_store, &iter);
-    gtk_list_store_set(m_store, &iter, 0, string, -1);
+    m_store.append(0, string);
 }
 
 template<class StringList>
@@ -57,7 +55,7 @@ void EntryCompletion<StringList>::fill()
 template<class StringList>
 void EntryCompletion<StringList>::clear()
 {
-    gtk_list_store_clear(m_store);
+    m_store.clear();
 }
 
 template<class StringList>