Wed, 22 Jan 2025 20:47:54 -0600
Prepare for the 2.14.14 release
Testing Done:
Ran `make distcheck`
Reviewed at https://reviews.imfreedom.org/r/3779/
| 11553 | 1 | /** |
| 2 | * @file gtkmenutray.h GTK+ Tray menu item | |
|
16254
eeb2bba4dc94
Rename the Doxygen group from gtkui to pidgin.
Richard Laager <rlaager@pidgin.im>
parents:
15572
diff
changeset
|
3 | * @ingroup pidgin |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* Pidgin is the legal property of its developers, whose names are too numerous |
| 11553 | 7 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 8 | * source distribution. | |
| 9 | * | |
| 10 | * This program is free software; you can redistribute it and/or modify | |
| 11 | * under the terms of the GNU General Public License as published by | |
| 12 | * the Free Software Foundation; either version 2 of the License, or | |
| 13 | * (at your option) any later version. | |
| 14 | * | |
| 15 | * This program is distributed in the hope that it will be useful, | |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | * GNU General Public License for more details. | |
| 19 | * | |
| 20 | * You should have received a copy of the GNU General Public License | |
| 21 | * 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
|
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 11553 | 23 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
24 | #ifndef PIDGIN_MENU_TRAY_H |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
25 | #define PIDGIN_MENU_TRAY_H |
| 11553 | 26 | |
|
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
|
27 | #include <gtk/gtk.h> |
| 11553 | 28 | |
|
26818
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
29 | #define PIDGIN_TYPE_MENU_TRAY (pidgin_menu_tray_get_gtype()) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
30 | #define PIDGIN_MENU_TRAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PIDGIN_TYPE_MENU_TRAY, PidginMenuTray)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
31 | #define PIDGIN_MENU_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PIDGIN_TYPE_MENU_TRAY, PidginMenuTrayClass)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
32 | #define PIDGIN_IS_MENU_TRAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PIDGIN_TYPE_MENU_TRAY)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
33 | #define PIDGIN_IS_MENU_TRAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PIDGIN_TYPE_MENU_TRAY)) |
|
453071d0db0e
Remove GTK_CHECK_* macros which were deprecated.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26727
diff
changeset
|
34 | #define PIDGIN_MENU_TRAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PIDGIN_TYPE_MENU_TRAY, PidginMenuTrayClass)) |
| 11553 | 35 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
36 | typedef struct _PidginMenuTray PidginMenuTray; |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
37 | typedef struct _PidginMenuTrayClass PidginMenuTrayClass; |
| 11553 | 38 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
39 | /** A PidginMenuTray */ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
40 | struct _PidginMenuTray { |
| 11553 | 41 | GtkMenuItem gparent; /**< The parent instance */ |
|
11599
431352c132c8
[gaim-migrate @ 13869]
Gary Kramlich <grim@reaperworld.com>
parents:
11558
diff
changeset
|
42 | GtkWidget *tray; /**< The tray */ |
|
11908
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
43 | GtkTooltips *tooltips; /**< Tooltips */ |
| 11553 | 44 | }; |
| 45 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
46 | /** A PidginMenuTrayClass */ |
|
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
47 | struct _PidginMenuTrayClass { |
| 11553 | 48 | GtkMenuItemClass gparent; /**< The parent class */ |
| 49 | }; | |
| 50 | ||
| 51 | G_BEGIN_DECLS | |
| 52 | ||
| 53 | /** | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
54 | * Registers the PidginMenuTray class if necessary and returns the |
| 11553 | 55 | * type ID assigned to it. |
| 56 | * | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
57 | * @return The PidginMenuTray type ID |
| 11553 | 58 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
59 | GType pidgin_menu_tray_get_gtype(void); |
| 11553 | 60 | |
| 61 | /** | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
62 | * Creates a new PidginMenuTray |
| 11553 | 63 | * |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
64 | * @return A new PidginMenuTray |
| 11553 | 65 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
66 | GtkWidget *pidgin_menu_tray_new(void); |
| 11553 | 67 | |
| 68 | /** | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
69 | * Gets the box for the PidginMenuTray |
| 11553 | 70 | * |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
71 | * @param menu_tray The PidginMenuTray |
| 11553 | 72 | * |
| 73 | * @return The box that this menu tray is using | |
| 74 | */ | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
75 | GtkWidget *pidgin_menu_tray_get_box(PidginMenuTray *menu_tray); |
| 11553 | 76 | |
| 77 | /** | |
| 78 | * Appends a widget into the tray | |
| 79 | * | |
| 80 | * @param menu_tray The tray | |
| 81 | * @param widget The widget | |
|
11908
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
82 | * @param tooltip The tooltip for this widget (widget requires its own X-window) |
| 11553 | 83 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
84 | void pidgin_menu_tray_append(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip); |
| 11553 | 85 | |
| 86 | /** | |
| 87 | * Prepends a widget into the tray | |
| 88 | * | |
|
11908
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
89 | * @param menu_tray The tray |
| 11553 | 90 | * @param widget The widget |
|
11908
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
91 | * @param tooltip The tooltip for this widget (widget requires its own X-window) |
| 11553 | 92 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
93 | 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
|
94 | |
|
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
95 | /** |
|
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
96 | * Set the tooltip for a widget |
|
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
97 | * |
|
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
98 | * @param menu_tray The tray |
|
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
99 | * @param widget The widget |
|
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
100 | * @param tooltip The tooltip to set for the widget (widget requires its own X-window) |
|
ad9c7ca74793
[gaim-migrate @ 14199]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
11599
diff
changeset
|
101 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
102 | void pidgin_menu_tray_set_tooltip(PidginMenuTray *menu_tray, GtkWidget *widget, const char *tooltip); |
| 11553 | 103 | |
| 104 | G_END_DECLS | |
| 105 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
106 | #endif /* PIDGIN_MENU_TRAY_H */ |