Mercurial > pidgin.yaz
annotate gtk/gtkdocklet.h @ 15000:82d1a2fc6d25
[gaim-migrate @ 17778]
SF Patch #1598994 from lexande
Fixes SF Bug #1581999
Original Description:
"The gaim 2.0.0beta5 log reader plugin uses the "Date" XML field in MSN logs, the format of which varies between locales, leading to logs being displayed on incorrect/future dates in locales that do not use the MM/DD/YYYY format. This patch fixes the plugin to use the "DateTime" field which has YYYY-MM-DD date in all locales."
I totally Warmenhovened this patch. My approach:
"I'm using the Date, Time, and DateTime fields. If I can determine that the log matches the current timezone, it'll display 100% properly in the log viewer. If it has a reasonable offset, it'll display as the original time, sort in the right place, but not have a timezone abbreviation. If the offset is bogus or I can't parse the Date or Time field, it'll display in UTC, but still sort properly. I think this is as ideal as is possible, given the data we have to work with."
You don't have to understand this. ;)
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 19 Nov 2006 06:54:38 +0000 |
parents | a8c2af13b96d |
children |
rev | line source |
---|---|
14681 | 1 /* |
2 * System tray icon (aka docklet) plugin for Gaim | |
3 * | |
4 * Copyright (C) 2002-3 Robert McQueen <robot101@debian.org> | |
5 * Copyright (C) 2003 Herman Bloggs <hermanator12002@yahoo.com> | |
6 * Inspired by a similar plugin by: | |
7 * John (J5) Palmieri <johnp@martianrock.com> | |
8 * | |
9 * This program is free software; you can redistribute it and/or | |
10 * modify it under the terms of the GNU General Public License as | |
11 * published by the Free Software Foundation; either version 2 of the | |
12 * License, or (at your option) any later version. | |
13 * | |
14 * This program is distributed in the hope that it will be useful, but | |
15 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 * General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
22 * 02111-1307, USA. | |
23 */ | |
24 | |
25 #ifndef _GTKDOCKLET_H_ | |
26 #define _GTKDOCKLET_H_ | |
27 | |
28 typedef enum | |
29 { | |
30 DOCKLET_STATUS_OFFLINE, | |
31 DOCKLET_STATUS_ONLINE, | |
32 DOCKLET_STATUS_ONLINE_PENDING, | |
33 DOCKLET_STATUS_AWAY, | |
34 DOCKLET_STATUS_AWAY_PENDING, | |
35 DOCKLET_STATUS_CONNECTING | |
36 } DockletStatus; | |
37 | |
38 struct docklet_ui_ops | |
39 { | |
40 void (*create)(void); | |
41 void (*destroy)(void); | |
42 void (*update_icon)(DockletStatus); | |
43 void (*blank_icon)(void); | |
44 void (*set_tooltip)(gchar *); | |
45 GtkMenuPositionFunc position_menu; | |
46 }; | |
47 | |
48 | |
14683
a8c2af13b96d
[gaim-migrate @ 17435]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14681
diff
changeset
|
49 /* functions in gtkdocklet.c */ |
14681 | 50 void gaim_gtk_docklet_clicked(int); |
51 void gaim_gtk_docklet_embedded(void); | |
52 void gaim_gtk_docklet_remove(void); | |
53 void gaim_gtk_docklet_set_ui_ops(struct docklet_ui_ops *); | |
54 void gaim_gtk_docklet_unload(void); | |
14683
a8c2af13b96d
[gaim-migrate @ 17435]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14681
diff
changeset
|
55 void gaim_gtk_docklet_init(void); |
a8c2af13b96d
[gaim-migrate @ 17435]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14681
diff
changeset
|
56 void gaim_gtk_docklet_uninit(void); |
a8c2af13b96d
[gaim-migrate @ 17435]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14681
diff
changeset
|
57 void*gaim_gtk_docklet_get_handle(void); |
14681 | 58 |
14683
a8c2af13b96d
[gaim-migrate @ 17435]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14681
diff
changeset
|
59 /* function in gtkdocklet-{x11,win32}.c */ |
14681 | 60 void docklet_ui_init(void); |
61 | |
62 #endif /* _GTKDOCKLET_H_ */ |