Wed, 04 Nov 2020 02:41:46 -0600
clean up PidginCellRendererExpander
Cleanup the PidginCellRendererExpander
Rename gtkcellrendererexpander.[ch] to pidgincellrendererexpander.[ch]
Reimplement the activate method so that the user clicking on the expander will toggle it.
Testing Done:
Connected a bonjour account, expanded buddies and groups. Also ran `ninja pidgin-pot`.
Reviewed at https://reviews.imfreedom.org/r/197/
|
39887
9c8f874c74a0
Clean up all of the license headers
Gary Kramlich <grim@reaperworld.com>
parents:
39885
diff
changeset
|
1 | /* |
|
9c8f874c74a0
Clean up all of the license headers
Gary Kramlich <grim@reaperworld.com>
parents:
39885
diff
changeset
|
2 | * finch |
|
32850
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
3 | * |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
4 | * Finch is the legal property of its developers, whose names are too numerous |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
6 | * source distribution. |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
7 | * |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
8 | * This program is free software; you can redistribute it and/or modify |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
11 | * (at your option) any later version. |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
12 | * |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
16 | * GNU General Public License for more details. |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
17 | * |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
19 | * along with this program; if not, write to the Free Software |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40508
2ebcb8eb5c01
create a global header for finch
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
23 | #if !defined(FINCH_GLOBAL_HEADER_INSIDE) && !defined(FINCH_COMPILATION) |
|
2ebcb8eb5c01
create a global header for finch
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
24 | # error "only <finch.h> may be included directly" |
|
2ebcb8eb5c01
create a global header for finch
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
25 | #endif |
|
2ebcb8eb5c01
create a global header for finch
Gary Kramlich <grim@reaperworld.com>
parents:
40359
diff
changeset
|
26 | |
|
39885
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39481
diff
changeset
|
27 | #ifndef FINCH_MENUUTIL_H |
|
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39481
diff
changeset
|
28 | #define FINCH_MENUUTIL_H |
|
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39481
diff
changeset
|
29 | |
|
35449
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
30 | /** |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
31 | * SECTION:gntmenuutil |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
32 | * @section_id: finch-gntmenuutil |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
33 | * @short_description: <filename>gntmenuutil.h</filename> |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
34 | * @title: Menu Utility functions |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
35 | */ |
|
c5f8cb0fb8ef
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35410
diff
changeset
|
36 | |
|
40359
ca141ea93b83
Make all of finch use purple.h
Gary Kramlich <grim@reaperworld.com>
parents:
39887
diff
changeset
|
37 | #include <purple.h> |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
37099
diff
changeset
|
38 | |
|
32850
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
39 | #include <gnt.h> |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
40 | |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
41 | /*************************************************************************** |
| 35472 | 42 | * GNT Menu Utility Functions |
|
32850
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
43 | ***************************************************************************/ |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
44 | |
|
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
45 | /** |
|
35494
e631108a5464
Fix namespace issues in libgnt and finch.
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
46 | * finch_append_menu_action: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32850
diff
changeset
|
47 | * @menu: the GntMenu to add to |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
48 | * @action: the PurpleActionMenu to add |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32850
diff
changeset
|
49 | * @ctx: the callback context, passed as the first argument to |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
50 | * the PurpleActionMenu's PurpleCallback function. |
|
35410
5a6336f20f6e
Convert docs from doxygen to gtk-doc format for finch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
51 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
52 | * Add a PurpleActionMenu to a GntMenu. |
|
32850
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
53 | */ |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
54 | void finch_append_menu_action(GntMenu *menu, PurpleActionMenu *action, gpointer ctx); |
|
32850
79912ff55187
I should probably add these files, too...
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
55 | |
|
39885
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39481
diff
changeset
|
56 | #endif /* FINCH_MENUUTIL_H */ |
|
b1b266896ec1
Fix the header guards for finch
Gary Kramlich <grim@reaperworld.com>
parents:
39481
diff
changeset
|
57 |