Mon, 15 Aug 2022 21:28:59 -0500
Move the Sort Buddies menu into the new menu bar
Testing Done:
Ran and verified the sort menu items functioned as expected.
Reviewed at https://reviews.imfreedom.org/r/1591/
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Pidgin - Internet Messenger |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * Pidgin is the legal property of its developers, whose names are too numerous |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * This program is free software; you can redistribute it and/or modify |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * it under the terms of the GNU General Public License as published by |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * (at your option) any later version. |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * This program is distributed in the hope that it will be useful, |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * GNU General Public License for more details. |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | * along with this program; if not, see <https://www.gnu.org/licenses/>. |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | */ |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | # error "only <pidgin.h> may be included directly" |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | #endif |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
27 | #ifndef PIDGIN_CONTACT_LIST_WINDOW_H |
|
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
28 | #define PIDGIN_CONTACT_LIST_WINDOW_H |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib.h> |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | #include <gtk/gtk.h> |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | G_BEGIN_DECLS |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
36 | |
|
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
37 | /** |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
38 | * PidginContactListWindow: |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
39 | * |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
40 | * #PidginContactListWindow is a transitional widget as we slowly migrate it |
|
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
41 | * into the conversation window to make a single window application. |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
42 | * |
|
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
43 | * Since: 3.0.0 |
|
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
44 | */ |
|
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
45 | |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
46 | #define PIDGIN_TYPE_CONTACT_LIST_WINDOW (pidgin_contact_list_window_get_type()) |
|
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
47 | G_DECLARE_FINAL_TYPE(PidginContactListWindow, pidgin_contact_list_window, |
|
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
48 | PIDGIN, CONTACT_LIST_WINDOW, GtkApplicationWindow) |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
49 | |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
50 | /** |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
51 | * pidgin_contact_list_window_new: |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
52 | * |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
53 | * Creates a new #PidginContactListWindow instance. |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | * |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
55 | * Returns: (transfer full): The new #PidginContactListWindow instance. |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
56 | * |
|
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
57 | * Since: 3.0.0 |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | */ |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
59 | GtkWidget *pidgin_contact_list_window_new(void); |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
60 | |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | /** |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
62 | * pidgin_contact_list_window_get_vbox: |
|
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
63 | * @window: The #PidginContactListWindow instance. |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | * |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | * Gets the main vbox for @contact_list. |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | * |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
67 | * Returns: (transfer none): The main vbox of @window. |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
68 | * |
|
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
69 | * Since: 3.0.0 |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
70 | */ |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
71 | GtkWidget *pidgin_contact_list_window_get_vbox(PidginContactListWindow *window); |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
73 | /** |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
74 | * pidgin_contact_list_window_get_menu_tray: |
|
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
75 | * @window: The #PidginContactListWindow instance. |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
76 | * |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
77 | * Gets the #PidginMenuTray instance from the menu of @window. |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
78 | * |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
79 | * Returns: (transfer none): The #PidginMenuTray from the menu of @window. |
|
40728
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
80 | * |
|
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
81 | * Since: 3.0.0 |
|
2dbfbaeefe40
Merge PidginBuddyListMenu with PidginContactList which fixes all of the accelerators as well.
Gary Kramlich <grim@reaperworld.com>
parents:
40600
diff
changeset
|
82 | */ |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
83 | GtkWidget *pidgin_contact_list_window_get_menu_tray(PidginContactListWindow *window); |
|
40600
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | G_END_DECLS |
|
46d10c72c137
Create a new ContactList that will eventually fully replace PidginBuddyList
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | |
|
41431
d0deb0cc4082
Rename PidginContactList to PidginContactListWindow.
Gary Kramlich <grim@reaperworld.com>
parents:
41124
diff
changeset
|
87 | #endif /* PIDGIN_CONTACT_LIST_WINDOW_H */ |