Mon, 12 Dec 2005 18:59:29 +0000
[gaim-migrate @ 14778]
SF Patch #1372898 from charkins
"This patch updates the unseen conversation api in
gtkconv to ensure consistancy and avoid code
duplication. The ...first_unseen() function is renamed
and expanded to return a list of conversations that
match the specified criteria. A max_count parameter is
used to allow this to short circuit early (using 1
gives old behavior). An additional flag was added to
allow this function to only consider hidden
conversations (used by the buddy list). The blist is
currently inconsistant in which conversations it loops
over for showing the menu tray icon, creating the
tooltip and the unseen menu. This patch fixes that.
The ...find_unseen_list() now handles contact-aware
conversations correctly as well (based on sadrul's
patches in #1362579 which are obsoleted by this patch).
I also included the fix from #1362579 which increments
unseen_count only when state>=UNSEEN_TEXT."
committer: Richard Laager <rlaager@pidgin.im>
| 10297 | 1 | /** |
| 2 | * @file gtkstock.h GTK+ Stock resources | |
| 3 | * @ingroup gtkui | |
| 4 | * | |
| 5 | * gaim | |
| 6 | * | |
| 7 | * Gaim is the legal property of its developers, whose names are too numerous | |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
| 10 | * | |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | */ | |
| 25 | #ifndef _GAIM_STOCK_H_ | |
| 26 | #define _GAIM_STOCK_H_ | |
| 27 | ||
| 28 | /**************************************************************************/ | |
| 29 | /** @name Stock images */ | |
| 30 | /**************************************************************************/ | |
| 31 | /*@{*/ | |
| 32 | #define GAIM_STOCK_ABOUT "gaim-about" | |
| 33 | #define GAIM_STOCK_ACCOUNTS "gaim-accounts" | |
|
12191
327f2d9ceaa7
[gaim-migrate @ 14493]
Richard Laager <rlaager@pidgin.im>
parents:
12163
diff
changeset
|
34 | #define GAIM_STOCK_ACTION "gaim-action" |
| 10297 | 35 | #define GAIM_STOCK_ALIAS "gaim-alias" |
| 36 | #define GAIM_STOCK_AWAY "gaim-away" | |
| 37 | #define GAIM_STOCK_BGCOLOR "gaim-bgcolor" | |
| 38 | #define GAIM_STOCK_BLOCK "gaim-block" | |
| 39 | #define GAIM_STOCK_CHAT "gaim-chat" | |
|
11271
939be1fdbf7a
[gaim-migrate @ 13454]
Richard Laager <rlaager@pidgin.im>
parents:
10643
diff
changeset
|
40 | #define GAIM_STOCK_CLEAR "gaim-clear" |
|
12163
483d8be2deec
[gaim-migrate @ 14464]
Richard Laager <rlaager@pidgin.im>
parents:
12116
diff
changeset
|
41 | #define GAIM_STOCK_CONNECT "gaim-connect" |
|
12191
327f2d9ceaa7
[gaim-migrate @ 14493]
Richard Laager <rlaager@pidgin.im>
parents:
12163
diff
changeset
|
42 | #define GAIM_STOCK_DEBUG "gaim-debug" |
| 10297 | 43 | #define GAIM_STOCK_DIALOG_AUTH "gaim-dialog-auth" |
| 44 | #define GAIM_STOCK_DIALOG_COOL "gaim-dialog-cool" | |
| 45 | #define GAIM_STOCK_DIALOG_ERROR "gaim-dialog-error" | |
| 46 | #define GAIM_STOCK_DIALOG_INFO "gaim-dialog-info" | |
| 47 | #define GAIM_STOCK_DIALOG_QUESTION "gaim-dialog-question" | |
| 48 | #define GAIM_STOCK_DIALOG_WARNING "gaim-dialog-warning" | |
|
12163
483d8be2deec
[gaim-migrate @ 14464]
Richard Laager <rlaager@pidgin.im>
parents:
12116
diff
changeset
|
49 | #define GAIM_STOCK_DISCONNECT "gaim-disconnect" |
| 10297 | 50 | #define GAIM_STOCK_DOWNLOAD "gaim-download" |
| 51 | #define GAIM_STOCK_EDIT "gaim-edit" | |
| 52 | #define GAIM_STOCK_FGCOLOR "gaim-fgcolor" | |
| 53 | #define GAIM_STOCK_FILE_CANCELED "gaim-file-canceled" | |
| 54 | #define GAIM_STOCK_FILE_DONE "gaim-file-done" | |
| 55 | #define GAIM_STOCK_FILE_TRANSFER "gaim-file-transfer" | |
| 56 | #define GAIM_STOCK_ICON_AWAY "gaim-icon-away" | |
| 57 | #define GAIM_STOCK_ICON_AWAY_MSG "gaim-icon-away-msg" | |
| 58 | #define GAIM_STOCK_ICON_CONNECT "gaim-icon-away-connect" | |
| 59 | #define GAIM_STOCK_ICON_OFFLINE "gaim-icon-offline" | |
| 60 | #define GAIM_STOCK_ICON_ONLINE "gaim-icon-online" | |
| 61 | #define GAIM_STOCK_ICON_ONLINE_MSG "gaim-icon-online-msg" | |
| 62 | #define GAIM_STOCK_IGNORE "gaim-ignore" | |
| 63 | #define GAIM_STOCK_IM "gaim-im" | |
| 64 | #define GAIM_STOCK_IMAGE "gaim-image" | |
| 65 | #define GAIM_STOCK_INFO "gaim-info" | |
| 66 | #define GAIM_STOCK_INVITE "gaim-invite" | |
| 67 | #define GAIM_STOCK_LINK "gaim-link" | |
|
12191
327f2d9ceaa7
[gaim-migrate @ 14493]
Richard Laager <rlaager@pidgin.im>
parents:
12163
diff
changeset
|
68 | #define GAIM_STOCK_LOG "gaim-log" |
| 10297 | 69 | #define GAIM_STOCK_LOGO "gaim-logo" |
| 70 | #define GAIM_STOCK_MODIFY "gaim-modify" | |
| 71 | #define GAIM_STOCK_OPEN_MAIL "gaim-stock-open-mail" | |
| 72 | #define GAIM_STOCK_PAUSE "gaim-pause" | |
|
12116
17bf39d2678f
[gaim-migrate @ 14416]
Casey Harkins <charkins@pidgin.im>
parents:
12024
diff
changeset
|
73 | #define GAIM_STOCK_PENDING "gaim-pending" |
|
12163
483d8be2deec
[gaim-migrate @ 14464]
Richard Laager <rlaager@pidgin.im>
parents:
12116
diff
changeset
|
74 | #define GAIM_STOCK_PLUGIN "gaim-plugin" |
|
12191
327f2d9ceaa7
[gaim-migrate @ 14493]
Richard Laager <rlaager@pidgin.im>
parents:
12163
diff
changeset
|
75 | #define GAIM_STOCK_POUNCE "gaim-pounce" |
| 10297 | 76 | #define GAIM_STOCK_SEND "gaim-send" |
| 77 | #define GAIM_STOCK_SIGN_OFF "gaim-sign-off" | |
| 78 | #define GAIM_STOCK_SIGN_ON "gaim-sign-on" | |
| 79 | #define GAIM_STOCK_SMILEY "gaim-smiley" | |
| 10643 | 80 | #define GAIM_STOCK_STATUS_ONLINE "gaim-status-online" |
| 81 | #define GAIM_STOCK_STATUS_AWAY "gaim-status-away" | |
| 82 | #define GAIM_STOCK_STATUS_INVISIBLE "gaim-status-invisible" | |
| 83 | #define GAIM_STOCK_STATUS_OFFLINE "gaim-status-offline" | |
| 84 | #define GAIM_STOCK_STATUS_TYPING0 "gaim-status-typing0" | |
| 85 | #define GAIM_STOCK_STATUS_TYPING1 "gaim-status-typing1" | |
| 86 | #define GAIM_STOCK_STATUS_TYPING2 "gaim-status-typing2" | |
| 87 | #define GAIM_STOCK_STATUS_TYPING3 "gaim-status-typing3" | |
| 88 | #define GAIM_STOCK_STATUS_CONNECT0 "gaim-status-connect0" | |
| 89 | #define GAIM_STOCK_STATUS_CONNECT1 "gaim-status-connect1" | |
| 90 | #define GAIM_STOCK_STATUS_CONNECT2 "gaim-status-connect2" | |
| 91 | #define GAIM_STOCK_STATUS_CONNECT3 "gaim-status-connect3" | |
| 10297 | 92 | #define GAIM_STOCK_TEXT_BIGGER "gaim-text-bigger" |
| 93 | #define GAIM_STOCK_TEXT_NORMAL "gaim-text-normal" | |
| 94 | #define GAIM_STOCK_TEXT_SMALLER "gaim-text-smaller" | |
| 95 | #define GAIM_STOCK_TYPED "gaim-typed" | |
| 96 | #define GAIM_STOCK_TYPING "gaim-typing" | |
| 97 | #define GAIM_STOCK_UPLOAD "gaim-upload" | |
| 12024 | 98 | #define GAIM_STOCK_VOICE_CHAT "gaim-voice-chat" |
| 10297 | 99 | #define GAIM_STOCK_WARN "gaim-warn" |
| 100 | /*@}*/ | |
| 101 | ||
| 102 | /** | |
| 103 | * For using icons that aren't one of the default GTK_ICON_SIZEs | |
| 104 | */ | |
| 105 | #define GAIM_ICON_SIZE_DIALOG_COOL "gaim-icon-size-dialog-cool" | |
| 106 | #define GAIM_ICON_SIZE_LOGO "gaim-icon-size-logo" | |
| 10643 | 107 | #define GAIM_ICON_SIZE_STATUS "gaim-icon-size-status" |
| 10297 | 108 | |
| 109 | /** | |
| 110 | * Sets up the gaim stock repository. | |
| 111 | */ | |
| 112 | void gaim_gtk_stock_init(void); | |
| 113 | ||
| 114 | #endif /* _GAIM_STOCK_H_ */ |