1/*
2 * Copyright © 2013 Canonical Limited
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 licence, 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 * Author: Ryan Lortie <desrt@desrt.ca>
18 */
19
20#ifndef __GTK_MENU_TRACKER_PRIVATE_H__
21#define __GTK_MENU_TRACKER_PRIVATE_H__
22
23#include "gtkmenutrackeritemprivate.h"
24
25typedef struct _GtkMenuTracker GtkMenuTracker;
26
27typedef void (* GtkMenuTrackerInsertFunc) (GtkMenuTrackerItem *item,
28 int position,
29 gpointer user_data);
30
31typedef void (* GtkMenuTrackerRemoveFunc) (int position,
32 gpointer user_data);
33
34
35GtkMenuTracker * gtk_menu_tracker_new (GtkActionObservable *observer,
36 GMenuModel *model,
37 gboolean with_separators,
38 gboolean merge_sections,
39 gboolean mac_os_mode,
40 const char *action_namespace,
41 GtkMenuTrackerInsertFunc insert_func,
42 GtkMenuTrackerRemoveFunc remove_func,
43 gpointer user_data);
44
45GtkMenuTracker * gtk_menu_tracker_new_for_item_link (GtkMenuTrackerItem *item,
46 const char *link_name,
47 gboolean merge_sections,
48 gboolean mac_os_mode,
49 GtkMenuTrackerInsertFunc insert_func,
50 GtkMenuTrackerRemoveFunc remove_func,
51 gpointer user_data);
52
53void gtk_menu_tracker_free (GtkMenuTracker *tracker);
54
55#endif /* __GTK_MENU_TRACKER_PRIVATE_H__ */
56

source code of gtk/gtk/gtkmenutrackerprivate.h