pidgin/pidginaccountactionsmenu.h

changeset 41475
702bafe15ee3
parent 41474
ed1c0145c164
child 41476
1a53026013e4
equal deleted inserted replaced
41474:ed1c0145c164 41475:702bafe15ee3
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_ACCOUNT_ACTIONS_MENU_H
28 #define PIDGIN_ACCOUNT_ACTIONS_MENU_H
29
30 #include <gtk/gtk.h>
31
32 #include <purple.h>
33
34 G_BEGIN_DECLS
35
36 /**
37 * PidginAccountActionsMenu:
38 *
39 * A #GtkMenu that provides an interface for users to edit accounts and
40 * activate the account's actions.
41 */
42
43 #define PIDGIN_TYPE_ACCOUNT_ACTIONS_MENU (pidgin_account_actions_menu_get_type())
44 G_DECLARE_FINAL_TYPE(PidginAccountActionsMenu, pidgin_account_actions_menu,
45 PIDGIN, ACCOUNT_ACTIONS_MENU, GtkMenu)
46
47 /**
48 * pidgin_account_actions_menu_new:
49 * @account: The #PurpleAccount that this menu is for.
50 *
51 * Creates a new #PidginAccountActionsMenu for @account.
52 *
53 * Returns: (transfer full): The new #PidginAccountActionsMenu instance.
54 */
55 GtkWidget *pidgin_account_actions_menu_new(PurpleAccount *account);
56
57 /**
58 * pidgin_account_actions_menu_get_account:
59 * @menu: The #PidginAccountActionsMenu instance.
60 *
61 * Gets the #PurpleAccount associated with @menu.
62 *
63 * Returns: (transfer none): The #PurpleAccount associated with @menu.
64 */
65 PurpleAccount *pidgin_account_actions_menu_get_account(PidginAccountActionsMenu *menu);
66
67 G_END_DECLS
68
69 #endif /* PIDGIN_ACCOUNT_ACTIONS_MENU_H */

mercurial