ui/gtk/model.h

changeset 140
c03c338a7dcf
parent 40
caa0df8ed095
child 142
46448d38885c
equal deleted inserted replaced
139:dbde25a5bc53 140:c03c338a7dcf
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2013 Olaf Wintermann. All rights reserved. 4 * Copyright 2017 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
43 * UiList to GtkTreeModel wrapper 43 * UiList to GtkTreeModel wrapper
44 */ 44 */
45 struct UiListModel { 45 struct UiListModel {
46 GObject object; 46 GObject object;
47 UiModelInfo *info; 47 UiModelInfo *info;
48 UiListPtr *list; 48 UiVar *var;
49 GType *columntypes; 49 GType *columntypes;
50 int numcolumns; 50 int numcolumns;
51 int stamp; 51 int stamp;
52 }; 52 };
53 53
57 void ui_list_init(); 57 void ui_list_init();
58 58
59 /* 59 /*
60 * Creates a UiListModel for a given UiList 60 * Creates a UiListModel for a given UiList
61 */ 61 */
62 UiListModel* ui_list_model_new(UiListPtr *list, UiModelInfo *info); 62 UiListModel* ui_list_model_new(UiVar *var, UiModelInfo *info);
63 63
64 64
65 // interface functions 65 // interface functions
66 66
67 GtkTreeModelFlags ui_list_model_get_flags(GtkTreeModel *tree_model); 67 GtkTreeModelFlags ui_list_model_get_flags(GtkTreeModel *tree_model);

mercurial