Mercurial > pidgin
comparison console/plugins/gntgf.c @ 14223:7c560c01b8f9
[gaim-migrate @ 16904]
Add a plugin gnthistory. The plugin is a core plugin, but does not look good
in gtkgaim.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 20 Aug 2006 16:45:57 +0000 |
parents | d822e68acb3e |
children | d9aa45c10588 |
comparison
equal
deleted
inserted
replaced
14222:8c13a650cef5 | 14223:7c560c01b8f9 |
---|---|
16 * You should have received a copy of the GNU General Public License | 16 * You should have received a copy of the GNU General Public License |
17 * along with this program; if not, write to the Free Software | 17 * along with this program; if not, write to the Free Software |
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 */ | 19 */ |
20 | 20 |
21 #define GAIM_PLUGINS | 21 |
22 #include "internal.h" | |
22 | 23 |
23 #define PLUGIN_STATIC_NAME "GntGf" | 24 #define PLUGIN_STATIC_NAME "GntGf" |
24 | 25 |
25 #define PREFS_PREFIX "/plugins/gnt/gntgf" | 26 #define PREFS_PREFIX "/plugins/gnt/gntgf" |
26 #define PREFS_EVENT PREFS_PREFIX "/events" | 27 #define PREFS_EVENT PREFS_PREFIX "/events" |
44 #include <gntcheckbox.h> | 45 #include <gntcheckbox.h> |
45 #include <gntlabel.h> | 46 #include <gntlabel.h> |
46 #include <gnttree.h> | 47 #include <gnttree.h> |
47 | 48 |
48 #include <gntplugin.h> | 49 #include <gntplugin.h> |
49 | |
50 #define _(X) X | |
51 | 50 |
52 typedef struct | 51 typedef struct |
53 { | 52 { |
54 GntWidget *window; | 53 GntWidget *window; |
55 int timer; | 54 int timer; |
200 { | 199 { |
201 char *pref; | 200 char *pref; |
202 char *display; | 201 char *display; |
203 } prefs[] = | 202 } prefs[] = |
204 { | 203 { |
205 {PREFS_EVENT_SIGNONF, _("Buddy signs on/off")}, | 204 {PREFS_EVENT_SIGNONF, N_("Buddy signs on/off")}, |
206 {PREFS_EVENT_IM_MSG, _("You receive an IM")}, | 205 {PREFS_EVENT_IM_MSG, N_("You receive an IM")}, |
207 {PREFS_EVENT_CHAT_MSG, _("Someone speaks in a chat")}, | 206 {PREFS_EVENT_CHAT_MSG, N_("Someone speaks in a chat")}, |
208 {PREFS_EVENT_CHAT_NICK, _("Someone says your name in a chat")}, | 207 {PREFS_EVENT_CHAT_NICK, N_("Someone says your name in a chat")}, |
209 {NULL, NULL} | 208 {NULL, NULL} |
210 }; | 209 }; |
211 | 210 |
212 static void | 211 static void |
213 pref_toggled(GntTree *tree, char *key, gpointer null) | 212 pref_toggled(GntTree *tree, char *key, gpointer null) |