blob: 8e4b61e6cb4b3afc179a36a4a6295fef730b6e36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
* Copyright © 2020 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#pragma once
#include <gio/gio.h>
G_BEGIN_DECLS
#define GTK_TYPE_JOINED_MENU (gtk_joined_menu_get_type())
G_DECLARE_FINAL_TYPE (GtkJoinedMenu, gtk_joined_menu, GTK, JOINED_MENU, GMenuModel)
GtkJoinedMenu *gtk_joined_menu_new (void);
guint gtk_joined_menu_get_n_joined (GtkJoinedMenu *self);
void gtk_joined_menu_append_menu (GtkJoinedMenu *self,
GMenuModel *model);
void gtk_joined_menu_prepend_menu (GtkJoinedMenu *self,
GMenuModel *model);
void gtk_joined_menu_remove_menu (GtkJoinedMenu *self,
GMenuModel *model);
void gtk_joined_menu_remove_index (GtkJoinedMenu *self,
guint index);
G_END_DECLS
|