pidgin/pidginpluginsmenu.h

changeset 41414
b76bc2b4d7cc
parent 41124
95555046173e
child 42465
b7d530551c1b
equal deleted inserted replaced
41413:911c16e255ff 41414:b76bc2b4d7cc
1 /* 1 /*
2 * pidgin 2 * Pidgin - Internet Messenger
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
3 * 4 *
4 * Pidgin is the legal property of its developers, whose names are too numerous 5 * Pidgin is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this 6 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution. 7 * source distribution.
7 * 8 *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details. 17 * GNU General Public License for more details.
17 * 18 *
18 * You should have received a copy of the GNU General Public License 19 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 20 * along with this program; if not, see <https://www.gnu.org/licenses/>.
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 */ 21 */
22 22
23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) 23 #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
24 # error "only <pidgin.h> may be included directly" 24 # error "only <pidgin.h> may be included directly"
25 #endif 25 #endif
32 G_BEGIN_DECLS 32 G_BEGIN_DECLS
33 33
34 /** 34 /**
35 * PidginPluginsMenu: 35 * PidginPluginsMenu:
36 * 36 *
37 * #PidginPluginsMenu is a #GtkMenu that provides an interface to users to open 37 * #PidginPluginsMenu is a [class@Gio.MenuModel] that automatically updates
38 * the plugin manager as well as activate plugin actions. 38 * itself when plugins are loaded and unloaded.
39 *
40 * It manages itself as plugins are loaded and unloaded and can be added as a
41 * submenu to any #GtkMenuItem.
42 * 39 *
43 * Since: 3.0.0 40 * Since: 3.0.0
44 */ 41 */
45 42
46 #define PIDGIN_TYPE_PLUGINS_MENU (pidgin_plugins_menu_get_type()) 43 #define PIDGIN_TYPE_PLUGINS_MENU (pidgin_plugins_menu_get_type())
47 G_DECLARE_FINAL_TYPE(PidginPluginsMenu, pidgin_plugins_menu, PIDGIN, 44 G_DECLARE_FINAL_TYPE(PidginPluginsMenu, pidgin_plugins_menu, PIDGIN,
48 PLUGINS_MENU, GtkMenu) 45 PLUGINS_MENU, GMenuModel)
49 46
50 /** 47 /**
51 * pidgin_plugins_menu_new: 48 * pidgin_plugins_menu_new:
52 * 49 *
53 * Creates a new #PidginPluginsMenu instance that keeps itself up to date. 50 * Creates a new #PidginPluginsMenu instance that keeps itself up to date.
54 * 51 *
55 * Returns: (transfer full): The new #PidginPluginsMenu instance. 52 * Returns: (transfer full): The new #PidginPluginsMenu instance.
56 */ 53 */
57 GtkWidget *pidgin_plugins_menu_new(void); 54 GMenuModel *pidgin_plugins_menu_new(void);
58 55
59 G_END_DECLS 56 G_END_DECLS
60 57
61 #endif /* PIDGIN_PLUGINS_MENU_H */ 58 #endif /* PIDGIN_PLUGINS_MENU_H */

mercurial