]> Pileus Git - ~andy/gtk/blob - gtk/tests/treemodel.h
appchooserdialog: remove redundant checks
[~andy/gtk] / gtk / tests / treemodel.h
1 /* Main wrapper for TreeModel test suite.
2  * Copyright (C) 2011  Kristian Rietveld  <kris@gtk.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #include <gtk/gtk.h>
19
20 void register_list_store_tests ();
21 void register_tree_store_tests ();
22 void register_sort_model_tests ();
23 void register_filter_model_tests ();
24 void register_model_ref_count_tests ();
25
26 /*
27  * Signal monitor
28  */
29 typedef struct _SignalMonitor           SignalMonitor;
30 typedef enum _SignalName                SignalName;
31
32 enum _SignalName
33 {
34   ROW_INSERTED,
35   ROW_DELETED,
36   ROW_CHANGED,
37   ROW_HAS_CHILD_TOGGLED,
38   ROWS_REORDERED,
39   LAST_SIGNAL
40 };
41
42
43 SignalMonitor *signal_monitor_new                     (GtkTreeModel  *client);
44 void           signal_monitor_free                    (SignalMonitor *m);
45
46 void           signal_monitor_assert_is_empty         (SignalMonitor *m);
47
48 void           signal_monitor_append_signal_reordered (SignalMonitor *m,
49                                                        SignalName     signal,
50                                                        GtkTreePath   *path,
51                                                        int           *new_order,
52                                                        int            len);
53 void           signal_monitor_append_signal_path      (SignalMonitor *m,
54                                                        SignalName     signal,
55                                                        GtkTreePath   *path);
56 void           signal_monitor_append_signal           (SignalMonitor *m,
57                                                        SignalName     signal,
58                                                        const gchar   *path_string);