ui/gtk/model.c

changeset 152
62921b370c60
parent 147
2e384acc89a6
child 164
1d912f78fd1d
equal deleted inserted replaced
151:11f3bb408051 152:62921b370c60
94 GTK_TYPE_TREE_DRAG_SOURCE, 94 GTK_TYPE_TREE_DRAG_SOURCE,
95 &list_model_dnd_src_interface_info); 95 &list_model_dnd_src_interface_info);
96 } 96 }
97 97
98 static void list_model_class_init(GObjectClass *cl, gpointer data) { 98 static void list_model_class_init(GObjectClass *cl, gpointer data) {
99 //cl->finalize = ...; // TODO 99 cl->dispose = ui_list_model_dispose;
100 cl->finalize = ui_list_model_finalize;
100 101
101 } 102 }
102 103
103 static void list_model_interface_init(GtkTreeModelIface *i, gpointer data) { 104 static void list_model_interface_init(GtkTreeModelIface *i, gpointer data) {
104 i->get_flags = ui_list_model_get_flags; 105 i->get_flags = ui_list_model_get_flags;
183 } 184 }
184 model->numcolumns = ncol; 185 model->numcolumns = ncol;
185 return model; 186 return model;
186 } 187 }
187 188
189 void ui_list_model_dispose(GObject *obj) {
190
191 }
192
193 void ui_list_model_finalize(GObject *obj) {
194
195 }
196
188 197
189 GtkTreeModelFlags ui_list_model_get_flags(GtkTreeModel *tree_model) { 198 GtkTreeModelFlags ui_list_model_get_flags(GtkTreeModel *tree_model) {
190 return (GTK_TREE_MODEL_LIST_ONLY | GTK_TREE_MODEL_ITERS_PERSIST); 199 return (GTK_TREE_MODEL_LIST_ONLY | GTK_TREE_MODEL_ITERS_PERSIST);
191 } 200 }
192 201

mercurial