Thu, 02 Sep 2021 20:18:36 -0500
Replace the deprecated API in gtkaccount.c
Testing Done:
Verified that all of the dialog buttons still function as intended.
Reviewed at https://reviews.imfreedom.org/r/906/
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* Pidgin is the legal property of its developers, whose names are too numerous |
| 11553 | 2 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 3 | * source distribution. | |
| 4 | * | |
| 5 | * This program is free software; you can redistribute it and/or modify | |
| 6 | * under the terms of the GNU General Public License as published by | |
| 7 | * the Free Software Foundation; either version 2 of the License, or | |
| 8 | * (at your option) any later version. | |
| 9 | * | |
| 10 | * This program is distributed in the hope that it will be useful, | |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 | * GNU General Public License for more details. | |
| 14 | * | |
| 15 | * You should have received a copy of the GNU General Public License | |
| 16 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16254
diff
changeset
|
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 11553 | 18 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35455
diff
changeset
|
19 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40233
diff
changeset
|
20 | #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION) |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40233
diff
changeset
|
21 | # error "only <pidgin.h> may be included directly" |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40233
diff
changeset
|
22 | #endif |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40233
diff
changeset
|
23 | |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35455
diff
changeset
|
24 | #ifndef PIDGIN_MENU_TRAY_H |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35455
diff
changeset
|
25 | #define PIDGIN_MENU_TRAY_H |
|
40208
1341d8d2c10e
Move PidginMenuTray to the gtype macros
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
26 | |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
27 | /** |
|
40233
0c7b2c569028
Add missing files to Pidgin API docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40212
diff
changeset
|
28 | * SECTION:pidginmenutray |
|
0c7b2c569028
Add missing files to Pidgin API docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40212
diff
changeset
|
29 | * @section_id: pidgin-menu-tray |
|
0c7b2c569028
Add missing files to Pidgin API docs.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
40212
diff
changeset
|
30 | * @short_description: <filename>pidginmenutray.h</filename> |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
31 | * @title: Tray Menu Item |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
32 | */ |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35416
diff
changeset
|
33 | |
|
26727
b8885bab55ab
More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20147
diff
changeset
|
34 | #include <gtk/gtk.h> |
| 11553 | 35 | |
|
40208
1341d8d2c10e
Move PidginMenuTray to the gtype macros
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
36 | G_BEGIN_DECLS |
| 11553 | 37 | |
|
40208
1341d8d2c10e
Move PidginMenuTray to the gtype macros
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
38 | #define PIDGIN_TYPE_MENU_TRAY (pidgin_menu_tray_get_type()) |
|
1341d8d2c10e
Move PidginMenuTray to the gtype macros
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
39 | G_DECLARE_FINAL_TYPE(PidginMenuTray, pidgin_menu_tray, PIDGIN, MENU_TRAY, GtkMenuItem) |
| 11553 | 40 | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
41 | /** |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
42 | * PidginMenuTray: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
43 | * |
|
40208
1341d8d2c10e
Move PidginMenuTray to the gtype macros
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
44 | * A PidginMenuTray is a #GtkMenuItem that allows you to pack icons into it |
|
1341d8d2c10e
Move PidginMenuTray to the gtype macros
Gary Kramlich <grim@reaperworld.com>
parents:
38743
diff
changeset
|
45 | * similar to a system notification area but in a windows menu bar. |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
46 | */ |
| 11553 | 47 | |
| 48 | /** | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
49 | * pidgin_menu_tray_new: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
50 | * |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
51 | * Creates a new PidginMenuTray |
| 11553 | 52 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35019
diff
changeset
|
53 | * Returns: A new PidginMenuTray |
| 11553 | 54 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
55 | GtkWidget *pidgin_menu_tray_new(void); |
| 11553 | 56 | |
| 57 | /** | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
58 | * pidgin_menu_tray_get_box: |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
59 | * @menu_tray: The PidginMenuTray |
| 11553 | 60 | * |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
61 | * Gets the box for the PidginMenuTray |
| 11553 | 62 | * |
|
38743
61e429efe744
A lot of annotation cleanups!
Gary Kramlich <grim@reaperworld.com>
parents:
37094
diff
changeset
|
63 | * Returns: (transfer none): The box that this menu tray is using |
| 11553 | 64 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
65 | GtkWidget *pidgin_menu_tray_get_box(PidginMenuTray *menu_tray); |
| 11553 | 66 | |
| 67 | /** | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
68 | * pidgin_menu_tray_append: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35019
diff
changeset
|
69 | * @menu_tray: The tray |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35019
diff
changeset
|
70 | * @widget: The widget |
|
40209
ee5349aa57ac
Clean up a some formatting
Gary Kramlich <grim@reaperworld.com>
parents:
40208
diff
changeset
|
71 | * @tooltip: The tooltip for this widget |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
72 | * |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
73 | * Appends a widget into the tray |
| 11553 | 74 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
75 | void pidgin_menu_tray_append(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip); |
| 11553 | 76 | |
| 77 | /** | |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
78 | * pidgin_menu_tray_prepend: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35019
diff
changeset
|
79 | * @menu_tray: The tray |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35019
diff
changeset
|
80 | * @widget: The widget |
|
40209
ee5349aa57ac
Clean up a some formatting
Gary Kramlich <grim@reaperworld.com>
parents:
40208
diff
changeset
|
81 | * @tooltip: The tooltip for this widget |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
82 | * |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
83 | * Prepends a widget into the tray |
| 11553 | 84 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
85 | void pidgin_menu_tray_prepend(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip); |
|
11908
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
86 | |
|
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
87 | /** |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
88 | * pidgin_menu_tray_set_tooltip: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35019
diff
changeset
|
89 | * @menu_tray: The tray |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35019
diff
changeset
|
90 | * @widget: The widget |
|
40209
ee5349aa57ac
Clean up a some formatting
Gary Kramlich <grim@reaperworld.com>
parents:
40208
diff
changeset
|
91 | * @tooltip: The tooltip to set for the widget |
|
35416
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
92 | * |
|
35c615531b2a
Convert docs from doxygen to gtk-doc format for gtkdebug to gtksmiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
93 | * Set the tooltip for a widget |
|
11908
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
94 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
95 | void pidgin_menu_tray_set_tooltip(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip); |
| 11553 | 96 | |
| 97 | G_END_DECLS | |
| 98 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
99 | #endif /* PIDGIN_MENU_TRAY_H */ |