1/*
2 * Copyright © 2020 Red Hat, Inc.
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.1 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 * SPDX-License-Identifier: LGPL-2.1-or-later
18 */
19
20#pragma once
21
22#include <gio/gio.h>
23
24G_BEGIN_DECLS
25
26#define GTK_TYPE_JOINED_MENU (gtk_joined_menu_get_type())
27
28G_DECLARE_FINAL_TYPE (GtkJoinedMenu, gtk_joined_menu, GTK, JOINED_MENU, GMenuModel)
29
30GtkJoinedMenu *gtk_joined_menu_new (void);
31guint gtk_joined_menu_get_n_joined (GtkJoinedMenu *self);
32void gtk_joined_menu_append_menu (GtkJoinedMenu *self,
33 GMenuModel *model);
34void gtk_joined_menu_prepend_menu (GtkJoinedMenu *self,
35 GMenuModel *model);
36void gtk_joined_menu_remove_menu (GtkJoinedMenu *self,
37 GMenuModel *model);
38void gtk_joined_menu_remove_index (GtkJoinedMenu *self,
39 guint index);
40
41G_END_DECLS
42

source code of gtk/gtk/gtkjoinedmenuprivate.h