pidgin/pidginaccountsmenu.h

changeset 41465
fc9819029e9d
parent 41464
979c8cc3413a
child 41466
557aad2bc415
equal deleted inserted replaced
41464:979c8cc3413a 41465:fc9819029e9d
1 /*
2 * Pidgin - Internet Messenger
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
4 *
5 * Pidgin is the legal property of its developers, whose names are too numerous
6 * to list here. Please refer to the COPYRIGHT file distributed with this
7 * source distribution.
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
21 */
22
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
24 # error "only <pidgin.h> may be included directly"
25 #endif
26
27 #ifndef PIDGIN_ACCOUNTS_MENU_H
28 #define PIDGIN_ACCOUNTS_MENU_H
29
30 #include <gtk/gtk.h>
31
32 G_BEGIN_DECLS
33
34 /**
35 * PidginAccountsMenu:
36 *
37 * #PidginAccountsMenu is a #GtkMenu that provides an interface to users to open
38 * the account manager as well as activate account actions.
39 *
40 * It manages itself as accounts are created/deleted and enabled/disabled and
41 * can be added as a submenu to any #GtkMenuItem.
42 *
43 * Since: 3.0.0
44 */
45
46 #define PIDGIN_TYPE_ACCOUNTS_MENU (pidgin_accounts_menu_get_type())
47 G_DECLARE_FINAL_TYPE(PidginAccountsMenu, pidgin_accounts_menu, PIDGIN,
48 ACCOUNTS_MENU, GtkMenu)
49
50 /**
51 * pidgin_accounts_menu_new:
52 *
53 * Creates a new #PidginAccountsMenu instance that keeps itself up to date.
54 *
55 * Returns: (transfer full): The new #PidginAccountsMenu instance.
56 */
57 GtkWidget *pidgin_accounts_menu_new(void);
58
59 G_END_DECLS
60
61 #endif /* PIDGIN_ACCOUNTS_MENU_H */

mercurial