pidgin/pidginbuddylistmenu.h

Tue, 12 May 2020 05:24:11 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Tue, 12 May 2020 05:24:11 -0400
changeset 40405
dc115c3b7694
parent 40388
3f2e9e346f6f
child 40502
875489636847
permissions
-rw-r--r--

Cleanup some list iteration.

40363
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * pidgin
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 *
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * Pidgin is the legal property of its developers, whose names are too numerous
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * to list here. Please refer to the COPYRIGHT file distributed with this
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * source distribution.
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 *
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * This program is free software; you can redistribute it and/or modify
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * it under the terms of the GNU General Public License as published by
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * the Free Software Foundation; either version 2 of the License, or
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * (at your option) any later version.
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 *
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful,
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * GNU General Public License for more details.
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 *
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * You should have received a copy of the GNU General Public License
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * along with this program; if not, write to the Free Software
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22 #ifndef PIDGIN_BUDDY_LIST_MENU_H
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #define PIDGIN_BUDDY_LIST_MENU_H
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24
40377
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
25 /**
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
26 * SECTION:pidginbuddylistmenu
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
27 * @section_id: pidgin-buddylist-menu
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
28 * @short_description: A widget to display the menubar in the buddy list window.
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
29 * @title: Buddylist Menu
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
30 *
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
31 * #PidginBuddyListMenu is a transitional widget as we slowly migrate the
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
32 * buddylist window to glade.
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
33 */
be51a9f44cea Fix up the docs for PidginBuddyListMenu and PidginPluginsMenu.
Gary Kramlich <grim@reaperworld.com>
parents: 40368
diff changeset
34
40363
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 #include <glib.h>
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 #include <gtk/gtk.h>
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 G_BEGIN_DECLS
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 #define PIDGIN_TYPE_BUDDY_LIST_MENU (pidgin_buddy_list_menu_get_type())
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 G_DECLARE_FINAL_TYPE(PidginBuddyListMenu, pidgin_buddy_list_menu, PIDGIN,
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 BUDDY_LIST_MENU, GtkMenuBar)
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 /**
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 * pidgin_buddy_list_menu_new:
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 *
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 * Creates a new #PidginBuddyListMenu instance.
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 *
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 * Returns: (transfer full): The new #PidginBuddyListMenu instance.
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 */
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 GtkWidget *pidgin_buddy_list_menu_new(void);
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53
40368
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
54 /**
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
55 * pidgin_buddy_list_menu_get_sort_item:
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
56 * @menu: The #PidginBuddyList instance.
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
57 *
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
58 * Returns the sort menu item from the buddies menu.
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
59 *
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
60 * Returns: (transfer none): The sort menu item from the buddies menu.
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
61 */
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
62 GtkWidget *pidgin_buddy_list_menu_get_sort_item(PidginBuddyListMenu *menu);
cb9a81e8845a Port the sort-method items to GMenu and GAction and display in the new menubar
Gary Kramlich <grim@reaperworld.com>
parents: 40363
diff changeset
63
40383
dbc5c2d601ab Move the menu trac to PidginBuddyListMenu
Gary Kramlich <grim@reaperworld.com>
parents: 40377
diff changeset
64 /**
dbc5c2d601ab Move the menu trac to PidginBuddyListMenu
Gary Kramlich <grim@reaperworld.com>
parents: 40377
diff changeset
65 * pidgin_buddy_list_menu_get_menu_tray:
dbc5c2d601ab Move the menu trac to PidginBuddyListMenu
Gary Kramlich <grim@reaperworld.com>
parents: 40377
diff changeset
66 * @menu: The #PidginBuddyList instance.
dbc5c2d601ab Move the menu trac to PidginBuddyListMenu
Gary Kramlich <grim@reaperworld.com>
parents: 40377
diff changeset
67 *
dbc5c2d601ab Move the menu trac to PidginBuddyListMenu
Gary Kramlich <grim@reaperworld.com>
parents: 40377
diff changeset
68 * Gets the #PidginMenuTray instance from @menu.
40388
3f2e9e346f6f Fix a bunch of stuff that was found in review.
Gary Kramlich <grim@reaperworld.com>
parents: 40383
diff changeset
69 *
3f2e9e346f6f Fix a bunch of stuff that was found in review.
Gary Kramlich <grim@reaperworld.com>
parents: 40383
diff changeset
70 * Returns: (transfer none): The #PidginMenuTray from @menu.
40383
dbc5c2d601ab Move the menu trac to PidginBuddyListMenu
Gary Kramlich <grim@reaperworld.com>
parents: 40377
diff changeset
71 */
dbc5c2d601ab Move the menu trac to PidginBuddyListMenu
Gary Kramlich <grim@reaperworld.com>
parents: 40377
diff changeset
72 GtkWidget *pidgin_buddy_list_menu_get_menu_tray(PidginBuddyListMenu *menu);
dbc5c2d601ab Move the menu trac to PidginBuddyListMenu
Gary Kramlich <grim@reaperworld.com>
parents: 40377
diff changeset
73
40363
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 G_END_DECLS
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75
c8b010d1d430 Start to migrate the buddy list from GtkActionEntry and UiManager to GActionEntry and a custom widget
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76 #endif /* PIDGIN_BUDDY_LIST_MENU_H */

mercurial