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 |
| 10297 | 2 | * |
| 15572 | 3 | * Pidgin is the legal property of its developers, whose names are too numerous |
| 10297 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
24970
diff
changeset
|
6 | * |
| 10297 | 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * 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:
19667
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 10297 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
21 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
39497
diff
changeset
|
22 | #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:
39497
diff
changeset
|
23 | # 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:
39497
diff
changeset
|
24 | #endif |
|
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
39497
diff
changeset
|
25 | |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
26 | #ifndef _PIDGIN_STOCK_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
27 | #define _PIDGIN_STOCK_H_ |
|
35451
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
28 | /** |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
29 | * SECTION:pidginstock |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
30 | * @section_id: pidgin-pidginstock |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
31 | * @short_description: <filename>pidginstock.h</filename> |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
32 | * @title: Stock Resources |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
33 | */ |
|
206524351826
Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents:
35417
diff
changeset
|
34 | |
|
26727
b8885bab55ab
More updates for GTK+ 3.0. This only fixes the single-includes. Fixing all
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26337
diff
changeset
|
35 | #include <gtk/gtk.h> |
|
23967
cc5667bc8f1e
Clean up status icon themes a bit
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23964
diff
changeset
|
36 | #include "gtkstatus-icon-theme.h" |
|
14258
d6e21dff9f0d
[gaim-migrate @ 16868]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
14253
diff
changeset
|
37 | |
| 10297 | 38 | /**************************************************************************/ |
| 35472 | 39 | /* Stock images */ |
| 10297 | 40 | /**************************************************************************/ |
| 35486 | 41 | |
|
39497
887deae02283
Add a simple toggle to disable the use of PIDGIN_STOCK on a per file basis
Gary Kramlich <grim@reaperworld.com>
parents:
39147
diff
changeset
|
42 | #ifndef PIDGIN_STOCK_DISABLE |
|
887deae02283
Add a simple toggle to disable the use of PIDGIN_STOCK on a per file basis
Gary Kramlich <grim@reaperworld.com>
parents:
39147
diff
changeset
|
43 | |
| 15577 | 44 | #define PIDGIN_STOCK_ACTION "pidgin-action" |
| 45 | #define PIDGIN_STOCK_ALIAS "pidgin-alias" | |
| 46 | #define PIDGIN_STOCK_AWAY "pidgin-away" | |
| 47 | #define PIDGIN_STOCK_CHAT "pidgin-chat" | |
| 48 | #define PIDGIN_STOCK_CLEAR "pidgin-clear" | |
| 49 | #define PIDGIN_STOCK_CLOSE_TABS "pidgin-close-tab" | |
| 50 | #define PIDGIN_STOCK_DEBUG "pidgin-debug" | |
| 51 | #define PIDGIN_STOCK_DISCONNECT "pidgin-disconnect" | |
| 52 | #define PIDGIN_STOCK_DOWNLOAD "pidgin-download" | |
| 53 | #define PIDGIN_STOCK_EDIT "pidgin-edit" | |
| 54 | #define PIDGIN_STOCK_FGCOLOR "pidgin-fgcolor" | |
|
35511
201a7fd12507
Use "Cancelled" as spelling of stock item.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
35487
diff
changeset
|
55 | #define PIDGIN_STOCK_FILE_CANCELLED "pidgin-file-cancelled" |
| 15577 | 56 | #define PIDGIN_STOCK_FILE_DONE "pidgin-file-done" |
| 57 | #define PIDGIN_STOCK_IGNORE "pidgin-ignore" | |
|
19667
4a8d8a6bd2b0
Make the gtkcert stuff compile on GTK+ older than 2.8
Daniel Atallah <datallah@pidgin.im>
parents:
19646
diff
changeset
|
58 | #define PIDGIN_STOCK_INFO "pidgin-info" |
| 15577 | 59 | #define PIDGIN_STOCK_INVITE "pidgin-invite" |
| 60 | #define PIDGIN_STOCK_MODIFY "pidgin-modify" | |
|
24594
b2da1decae23
Add an ellipsis to the "Add" and "Modify" buttons in the accounts, pounces, and
Alex Willmer <alex@moreati.org.uk>
parents:
24147
diff
changeset
|
61 | #define PIDGIN_STOCK_ADD "pidgin-add" |
| 15577 | 62 | #define PIDGIN_STOCK_OPEN_MAIL "pidgin-stock-open-mail" |
| 63 | #define PIDGIN_STOCK_PAUSE "pidgin-pause" | |
| 64 | #define PIDGIN_STOCK_SIGN_OFF "pidgin-sign-off" | |
| 65 | #define PIDGIN_STOCK_SIGN_ON "pidgin-sign-on" | |
| 66 | #define PIDGIN_STOCK_TEXT_NORMAL "pidgin-text-normal" | |
| 67 | #define PIDGIN_STOCK_TYPED "pidgin-typed" | |
| 68 | #define PIDGIN_STOCK_UPLOAD "pidgin-upload" | |
|
34343
225d5c9642d1
Polish back/next stock items a bit
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
30708
diff
changeset
|
69 | #define PIDGIN_STOCK_NEXT "pidgin-next" |
|
15458
39c79dc7c965
A lot of status icon changes:
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
70 | |
| 15497 | 71 | /* Status icons */ |
| 15554 | 72 | #define PIDGIN_STOCK_STATUS_AVAILABLE "pidgin-status-available" |
| 73 | #define PIDGIN_STOCK_STATUS_AVAILABLE_I "pidgin-status-available-i" | |
| 74 | #define PIDGIN_STOCK_STATUS_AWAY "pidgin-status-away" | |
| 75 | #define PIDGIN_STOCK_STATUS_AWAY_I "pidgin-status-away-i" | |
| 76 | #define PIDGIN_STOCK_STATUS_BUSY "pidgin-status-busy" | |
| 77 | #define PIDGIN_STOCK_STATUS_BUSY_I "pidgin-status-busy-i" | |
| 78 | #define PIDGIN_STOCK_STATUS_CHAT "pidgin-status-chat" | |
| 16298 | 79 | #define PIDGIN_STOCK_STATUS_INVISIBLE "pidgin-status-invisible" |
| 15554 | 80 | #define PIDGIN_STOCK_STATUS_XA "pidgin-status-xa" |
| 81 | #define PIDGIN_STOCK_STATUS_XA_I "pidgin-status-xa-i" | |
| 82 | #define PIDGIN_STOCK_STATUS_LOGIN "pidgin-status-login" | |
| 83 | #define PIDGIN_STOCK_STATUS_LOGOUT "pidgin-status-logout" | |
| 84 | #define PIDGIN_STOCK_STATUS_OFFLINE "pidgin-status-offline" | |
| 17412 | 85 | #define PIDGIN_STOCK_STATUS_OFFLINE_I "pidgin-status-offline" |
| 15554 | 86 | #define PIDGIN_STOCK_STATUS_PERSON "pidgin-status-person" |
| 15760 | 87 | #define PIDGIN_STOCK_STATUS_MESSAGE "pidgin-status-message" |
| 88 | ||
| 89 | /* Chat room emblems */ | |
| 90 | #define PIDGIN_STOCK_STATUS_IGNORED "pidgin-status-ignored" | |
| 91 | #define PIDGIN_STOCK_STATUS_FOUNDER "pidgin-status-founder" | |
| 15554 | 92 | #define PIDGIN_STOCK_STATUS_OPERATOR "pidgin-status-operator" |
| 93 | #define PIDGIN_STOCK_STATUS_HALFOP "pidgin-status-halfop" | |
|
15733
f9adf674b97f
New chatlist icons. founder and ignored still needed.
Sean Egan <seanegan@pidgin.im>
parents:
15731
diff
changeset
|
94 | #define PIDGIN_STOCK_STATUS_VOICE "pidgin-status-voice" |
| 15497 | 95 | |
|
15623
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
96 | /* Toolbar (and menu) icons */ |
|
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
97 | #define PIDGIN_STOCK_TOOLBAR_ACCOUNTS "pidgin-accounts" |
|
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
98 | #define PIDGIN_STOCK_TOOLBAR_BGCOLOR "pidgin-bgcolor" |
|
16068
b1dac315ed09
block and unblock have the right icons now
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
99 | #define PIDGIN_STOCK_TOOLBAR_BLOCK "pidgin-block" |
|
15623
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
100 | #define PIDGIN_STOCK_TOOLBAR_FGCOLOR "pidgin-fgcolor" |
|
16454
c913ac4ef44c
Add Hylke's font face icon
Sean Egan <seanegan@pidgin.im>
parents:
16386
diff
changeset
|
101 | #define PIDGIN_STOCK_TOOLBAR_FONT_FACE "pidgin-font-face" |
|
15623
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
102 | #define PIDGIN_STOCK_TOOLBAR_TEXT_SMALLER "pidgin-text-smaller" |
|
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
103 | #define PIDGIN_STOCK_TOOLBAR_TEXT_LARGER "pidgin-text-larger" |
|
18126
c47f97f320d3
Add missing toolbar insert bits
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
17499
diff
changeset
|
104 | #define PIDGIN_STOCK_TOOLBAR_INSERT "pidgin-insert" |
|
15623
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
105 | #define PIDGIN_STOCK_TOOLBAR_INSERT_IMAGE "pidgin-insert-image" |
|
35935
98e92d543d73
Initial implementation fot the screencap plugin
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35511
diff
changeset
|
106 | #define PIDGIN_STOCK_TOOLBAR_INSERT_SCREENSHOT "pidgin-insert-screenshot" |
|
15623
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
107 | #define PIDGIN_STOCK_TOOLBAR_INSERT_LINK "pidgin-insert-link" |
|
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
108 | #define PIDGIN_STOCK_TOOLBAR_MESSAGE_NEW "pidgin-message-new" |
|
16068
b1dac315ed09
block and unblock have the right icons now
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
109 | #define PIDGIN_STOCK_TOOLBAR_PENDING "pidgin-pending" |
|
15623
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
110 | #define PIDGIN_STOCK_TOOLBAR_PLUGINS "pidgin-plugins" |
|
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
111 | #define PIDGIN_STOCK_TOOLBAR_TYPING "pidgin-typing" |
|
bf485c598199
toolbar/menu icons. reduce the imhtmltoolbar spacing. more gaimstock pruning
Sean Egan <seanegan@pidgin.im>
parents:
15577
diff
changeset
|
112 | #define PIDGIN_STOCK_TOOLBAR_USER_INFO "pidgin-info" |
|
16068
b1dac315ed09
block and unblock have the right icons now
Nathan Walp <nwalp@pidgin.im>
parents:
15997
diff
changeset
|
113 | #define PIDGIN_STOCK_TOOLBAR_UNBLOCK "pidgin-unblock" |
|
16386
416b510e691e
New select-avatar image from hbons
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16304
diff
changeset
|
114 | #define PIDGIN_STOCK_TOOLBAR_SELECT_AVATAR "pidgin-select-avatar" |
| 16881 | 115 | #define PIDGIN_STOCK_TOOLBAR_SEND_FILE "pidgin-send-file" |
|
23423
05e6ffac284c
Update File Transfer icon and use new send fie icon. Fixes #2744.
Daniel Atallah <datallah@pidgin.im>
parents:
22411
diff
changeset
|
116 | #define PIDGIN_STOCK_TOOLBAR_TRANSFER "pidgin-transfer" |
|
23704
9b88c9b23aed
Use USE_VV instead of USE_FARSIGHT.
Michael Ruprecht <maiku@pidgin.im>
parents:
22679
diff
changeset
|
117 | #ifdef USE_VV |
|
23712
a775dab7e038
Create a proper media menu with options for audio, video, and
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
118 | #define PIDGIN_STOCK_TOOLBAR_AUDIO_CALL "pidgin-audio-call" |
|
a775dab7e038
Create a proper media menu with options for audio, video, and
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
119 | #define PIDGIN_STOCK_TOOLBAR_VIDEO_CALL "pidgin-video-call" |
|
a775dab7e038
Create a proper media menu with options for audio, video, and
Michael Ruprecht <maiku@pidgin.im>
parents:
23704
diff
changeset
|
120 | #define PIDGIN_STOCK_TOOLBAR_AUDIO_VIDEO_CALL "pidgin-audio-video-call" |
|
22648
e286d795c5f9
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
121 | #endif |
|
24457
adbbdb0532b0
Adds attention UI to Pidgin (can send attentions using a menu item)
Marcus Lundblad <malu@pidgin.im>
parents:
24147
diff
changeset
|
122 | #define PIDGIN_STOCK_TOOLBAR_SEND_ATTENTION "pidgin-send-attention" |
| 15731 | 123 | |
| 124 | /* Tray icons */ | |
|
29705
3ccbf39a7f8e
Revert some changes to pidginstock.[ch] that are no longer necessary now
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
29653
diff
changeset
|
125 | #define PIDGIN_STOCK_TRAY_AVAILABLE "pidgin-tray-available" |
| 16808 | 126 | #define PIDGIN_STOCK_TRAY_INVISIBLE "pidgin-tray-invisible" |
| 15731 | 127 | #define PIDGIN_STOCK_TRAY_AWAY "pidgin-tray-away" |
| 128 | #define PIDGIN_STOCK_TRAY_BUSY "pidgin-tray-busy" | |
| 129 | #define PIDGIN_STOCK_TRAY_XA "pidgin-tray-xa" | |
| 130 | #define PIDGIN_STOCK_TRAY_OFFLINE "pidgin-tray-offline" | |
| 131 | #define PIDGIN_STOCK_TRAY_CONNECT "pidgin-tray-connect" | |
| 132 | #define PIDGIN_STOCK_TRAY_PENDING "pidgin-tray-pending" | |
|
18321
a12453d6f114
Uncomment some things that were begging to be uncommented
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
18178
diff
changeset
|
133 | #define PIDGIN_STOCK_TRAY_EMAIL "pidgin-tray-email" |
| 15731 | 134 | |
|
39497
887deae02283
Add a simple toggle to disable the use of PIDGIN_STOCK on a per file basis
Gary Kramlich <grim@reaperworld.com>
parents:
39147
diff
changeset
|
135 | #endif /* PIDGIN_STOCK_DISABLE */ |
| 15731 | 136 | |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
137 | /* |
| 10297 | 138 | * For using icons that aren't one of the default GTK_ICON_SIZEs |
| 139 | */ | |
| 19646 | 140 | #define PIDGIN_ICON_SIZE_TANGO_MICROSCOPIC "pidgin-icon-size-tango-microscopic" |
| 15497 | 141 | #define PIDGIN_ICON_SIZE_TANGO_EXTRA_SMALL "pidgin-icon-size-tango-extra-small" |
| 142 | #define PIDGIN_ICON_SIZE_TANGO_SMALL "pidgin-icon-size-tango-small" | |
| 143 | #define PIDGIN_ICON_SIZE_TANGO_MEDIUM "pidgin-icon-size-tango-medium" | |
|
15792
862d8eb17606
make rtl icons work: http://gaim.sf.net/sean/rtl.png
Sean Egan <seanegan@pidgin.im>
parents:
15760
diff
changeset
|
144 | #define PIDGIN_ICON_SIZE_TANGO_LARGE "pidgin-icon-size-tango-large" |
| 15497 | 145 | #define PIDGIN_ICON_SIZE_TANGO_HUGE "pidgin-icon-size-tango-huge" |
|
23964
342e3f5bedd9
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23423
diff
changeset
|
146 | |
|
26813
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
147 | typedef struct _PidginStockIconTheme PidginStockIconTheme; |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
148 | typedef struct _PidginStockIconThemeClass PidginStockIconThemeClass; |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
149 | |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
150 | #define PIDGIN_TYPE_STOCK_ICON_THEME (pidgin_stock_icon_theme_get_type ()) |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
151 | #define PIDGIN_STOCK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_STOCK_ICON_THEME, PidginStockIconTheme)) |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
152 | #define PIDGIN_STOCK_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PIDGIN_TYPE_STOCK_ICON_THEME, PidginStockIconThemeClass)) |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
153 | #define PIDGIN_IS_STOCK_ICON_THEME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_STOCK_ICON_THEME)) |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
154 | #define PIDGIN_IS_STOCK_ICON_THEME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PIDGIN_TYPE_STOCK_ICON_THEME)) |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
155 | #define PIDGIN_STOCK_ICON_THEME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PIDGIN_TYPE_STOCK_ICON_THEME, PidginStockIconThemeClass)) |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
156 | |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
157 | /** |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
158 | * PidginStockIconTheme: |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
159 | * |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
160 | * extends PidginIconTheme (gtkicon-theme.h) |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
161 | * A pidgin stock icon theme. |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
162 | * This object represents a Pidgin stock icon theme. |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
163 | * |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
164 | * PidginStockIconTheme is a PidginIconTheme Object. |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
165 | */ |
|
26813
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
166 | struct _PidginStockIconTheme |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
167 | { |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
168 | PidginIconTheme parent; |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
169 | }; |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
170 | |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
171 | struct _PidginStockIconThemeClass |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
172 | { |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
173 | PidginIconThemeClass parent_class; |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
174 | }; |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
175 | |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
176 | G_BEGIN_DECLS |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
177 | |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
178 | /** |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
179 | * pidgin_stock_icon_theme_get_type: |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
180 | * |
| 35474 | 181 | * Returns: The #GType for a stock icon theme. |
|
26813
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
182 | */ |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
183 | GType pidgin_stock_icon_theme_get_type(void); |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
184 | |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
185 | /** |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
186 | * pidgin_stock_load_status_icon_theme: |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
187 | * @theme: the theme to load, or null to load all the default icons |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
24970
diff
changeset
|
188 | * |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
189 | * Loades all of the icons from the status icon theme into Pidgin stock |
|
23964
342e3f5bedd9
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23423
diff
changeset
|
190 | */ |
|
23967
cc5667bc8f1e
Clean up status icon themes a bit
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23964
diff
changeset
|
191 | void pidgin_stock_load_status_icon_theme(PidginStatusIconTheme *theme); |
|
23964
342e3f5bedd9
partially working status icon theme stuff
Justin Rodriguez <ffdragon@soc.pidgin.im>
parents:
23423
diff
changeset
|
192 | |
|
26813
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
193 | |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
194 | void pidgin_stock_load_stock_icon_theme(PidginStockIconTheme *theme); |
|
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
195 | |
| 10297 | 196 | /** |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
197 | * pidgin_stock_init: |
|
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
198 | * |
| 15884 | 199 | * Sets up the purple stock repository. |
| 10297 | 200 | */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15559
diff
changeset
|
201 | void pidgin_stock_init(void); |
| 10297 | 202 | |
|
26813
c1a058a2466e
Make it possible to load non-status icons using a PidginStockIconTheme.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
26727
diff
changeset
|
203 | G_END_DECLS |
|
35417
4e34bb5d3681
Convert docs from doxygen to gtk-doc format for gtksound to pidgintooltip
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
204 | |
| 15570 | 205 | #endif /* _PIDGIN_STOCK_H_ */ |