1
--- configure.ac 2006-10-22 14:48:29.000000000 +0100
2
+++ configure.ac 2007-05-03 11:34:33.000000000 +0100
4
# gaim-encryption configure script, thanks guys ;)
7
-AC_INIT([gaim-libnotify], [0.12], [nothing])
8
+AC_INIT([pidgin-libnotify], [0.13], [nothing])
10
AM_CONFIG_HEADER(config.h)
16
-ALL_LINGUAS="es fr it nl pl pt pt_BR"
17
-AM_GNU_GETTEXT_VERSION(0.10.40)
20
+GETTEXT_PACKAGE=pidgin-libnotify
21
+AC_SUBST(GETTEXT_PACKAGE)
22
+ALL_LINGUAS="es fr it nl pl pt pt_BR sl"
26
# Look for the C compiler
32
+# Check for libpurple
35
-PKG_CHECK_MODULES(GAIM, gaim >= 2.0.0,
36
+PKG_CHECK_MODULES(LIBPURPLE, purple >= 2.0.0,
38
- AC_DEFINE(HAVE_GAIM, 1, [Define if we've found gaim.])
39
+ AC_DEFINE(HAVE_LIBPURPLE, 1, [Define if we've found libpurple.])
42
-AC_SUBST(GAIM_CFLAGS)
43
-GAIM_LIBDIR=`pkg-config --variable=libdir gaim`
44
-GAIM_DATADIR=`pkg-config --variable=datadir gaim`
45
-AC_SUBST(GAIM_LIBDIR)
46
-AC_SUBST(GAIM_DATADIR)
47
+AC_SUBST(LIBPURPLE_CFLAGS)
48
+LIBPURPLE_LIBDIR=`pkg-config --variable=libdir purple`
49
+LIBPURPLE_DATADIR=`pkg-config --variable=datadir purple`
50
+AC_SUBST(LIBPURPLE_LIBDIR)
51
+AC_SUBST(LIBPURPLE_DATADIR)
57
+PKG_CHECK_MODULES(PIDGIN, pidgin >= 2.0.0,
59
+ AC_DEFINE(HAVE_PIDGIN, 1, [Define if we've found pidgin.])
62
+AC_SUBST(PIDGIN_CFLAGS)
63
+PIDGIN_LIBDIR=`pkg-config --variable=libdir pidgin`
64
+PIDGIN_DATADIR=`pkg-config --variable=datadir pidgin`
65
+AC_SUBST(PIDGIN_LIBDIR)
66
+AC_SUBST(PIDGIN_DATADIR)
69
# Check if plugins are enabled
80
echo Debugging enabled..............: $enable_debug
81
echo Deprecated API enabled.........: $enable_deprecated
82
-#echo Gaim API.......................: $GAIM_CFLAGS
83
+#echo libpurple API..................: $LIBPURPLE_CFLAGS
84
+#echo pidgin API.....................: $PIDGIN_CFLAGS
86
echo Type make to compile
87
-echo Thank you for using gaim-libnotify
88
+echo Thank you for using pidgin-libnotify
90
--- src/gaim-libnotify.c 2006-10-22 14:46:44.000000000 +0100
91
+++ src/gaim-libnotify.c 2007-05-03 22:54:18.000000000 +0100
94
- * Gaim-libnotify - Provides a libnotify interface for Gaim
95
+ * Pidgin-libnotify - Provides a libnotify interface for Pidgin
96
* Copyright (C) 2005 Duarte Henriques
98
* This program is free software; you can redistribute it and/or
101
#include "gln_intl.h"
103
-#ifndef GAIM_PLUGINS
104
-#define GAIM_PLUGINS
105
+#ifndef PURPLE_PLUGINS
106
+#define PURPLE_PLUGINS
116
-/* for gaim_gtk_create_prpl_icon */
117
-#include <gaim/gtkutils.h>
118
+/* for pidgin_create_prpl_icon */
119
+#include <gtkutils.h>
121
#include <libnotify/notify.h>
125
-#define PLUGIN_ID "gaim-libnotify"
126
+#define PLUGIN_ID "pidgin-libnotify"
128
static GHashTable *buddy_hash;
130
-static GaimPluginPrefFrame *
131
-get_plugin_pref_frame (GaimPlugin *plugin)
132
+static PurplePluginPrefFrame *
133
+get_plugin_pref_frame (PurplePlugin *plugin)
135
- GaimPluginPrefFrame *frame;
136
- GaimPluginPref *ppref;
137
+ PurplePluginPrefFrame *frame;
138
+ PurplePluginPref *ppref;
140
- frame = gaim_plugin_pref_frame_new ();
141
+ frame = purple_plugin_pref_frame_new ();
143
- ppref = gaim_plugin_pref_new_with_name_and_label (
144
+ ppref = purple_plugin_pref_new_with_name_and_label (
145
"/plugins/gtk/libnotify/newmsg",
147
- gaim_plugin_pref_frame_add (frame, ppref);
148
+ purple_plugin_pref_frame_add (frame, ppref);
150
- ppref = gaim_plugin_pref_new_with_name_and_label (
151
+ ppref = purple_plugin_pref_new_with_name_and_label (
152
"/plugins/gtk/libnotify/newconvonly",
153
_("Only new conversations"));
154
- gaim_plugin_pref_frame_add (frame, ppref);
155
+ purple_plugin_pref_frame_add (frame, ppref);
157
- ppref = gaim_plugin_pref_new_with_name_and_label (
158
+ ppref = purple_plugin_pref_new_with_name_and_label (
159
"/plugins/gtk/libnotify/blocked",
160
_("Ignore events from blocked users"));
161
- gaim_plugin_pref_frame_add (frame, ppref);
162
+ purple_plugin_pref_frame_add (frame, ppref);
164
- ppref = gaim_plugin_pref_new_with_name_and_label (
165
+ ppref = purple_plugin_pref_new_with_name_and_label (
166
"/plugins/gtk/libnotify/signon",
167
_("Buddy signs on"));
168
- gaim_plugin_pref_frame_add (frame, ppref);
169
+ purple_plugin_pref_frame_add (frame, ppref);
171
- ppref = gaim_plugin_pref_new_with_name_and_label (
172
+ ppref = purple_plugin_pref_new_with_name_and_label (
173
"/plugins/gtk/libnotify/signoff",
174
_("Buddy signs off"));
175
- gaim_plugin_pref_frame_add (frame, ppref);
176
+ purple_plugin_pref_frame_add (frame, ppref);
182
event_connection_throttle_cb (gpointer data)
184
- GaimAccount *account;
185
+ PurpleAccount *account;
187
- account = (GaimAccount *)data;
188
+ account = (PurpleAccount *)data;
193
- if (!gaim_account_get_connection (account)) {
194
+ if (!purple_account_get_connection (account)) {
195
just_signed_on_accounts = g_list_remove (just_signed_on_accounts, account);
199
- if (!gaim_account_is_connected (account))
200
+ if (!purple_account_is_connected (account))
203
just_signed_on_accounts = g_list_remove (just_signed_on_accounts, account);
204
@@ -106,14 +106,18 @@
208
-event_connection_throttle (GaimConnection *gc, gpointer data)
209
+event_connection_throttle (PurpleConnection *gc, gpointer data)
211
- GaimAccount *account;
212
+ PurpleAccount *account;
214
+ /* TODO: this function gets called after buddy signs on for GTalk
215
+ users who have themselves as a buddy */
216
+ purple_debug_info (PLUGIN_ID, "event_connection_throttle() called\n");
221
- account = gaim_connection_get_account(gc);
222
+ account = purple_connection_get_account(gc);
228
/* do NOT g_free() the string returned by this function */
230
-best_name (GaimBuddy *buddy)
231
+best_name (PurpleBuddy *buddy)
235
@@ -135,14 +139,14 @@
239
-pixbuf_from_buddy_icon (GaimBuddyIcon *buddy_icon)
240
+pixbuf_from_buddy_icon (PurpleBuddyIcon *buddy_icon)
245
GdkPixbufLoader *loader;
247
- data = gaim_buddy_icon_get_data (buddy_icon, &len);
248
+ data = purple_buddy_icon_get_data (buddy_icon, &len);
250
loader = gdk_pixbuf_loader_new ();
251
gdk_pixbuf_loader_set_size (loader, 48, 48);
252
@@ -164,23 +168,23 @@
253
action_cb (NotifyNotification *notification,
254
gchar *action, gpointer user_data)
256
- GaimBuddy *buddy = NULL;
257
- GaimConversation *conv = NULL;
258
+ PurpleBuddy *buddy = NULL;
259
+ PurpleConversation *conv = NULL;
261
- gaim_debug_info (PLUGIN_ID, "action_cb(), "
262
+ purple_debug_info (PLUGIN_ID, "action_cb(), "
263
"notification: 0x%x, action: '%s'", notification, action);
265
- buddy = (GaimBuddy *)g_object_get_data (G_OBJECT(notification), "buddy");
266
+ buddy = (PurpleBuddy *)g_object_get_data (G_OBJECT(notification), "buddy");
269
- gaim_debug_warning (PLUGIN_ID, "Got no buddy!");
270
+ purple_debug_warning (PLUGIN_ID, "Got no buddy!");
274
- conv = gaim_find_conversation_with_account (GAIM_CONV_TYPE_ANY, buddy->name, buddy->account);
275
+ conv = purple_find_conversation_with_account (PURPLE_CONV_TYPE_ANY, buddy->name, buddy->account);
278
- conv = gaim_conversation_new (GAIM_CONV_TYPE_IM,
279
+ conv = purple_conversation_new (PURPLE_CONV_TYPE_IM,
283
@@ -192,11 +196,11 @@
285
closed_cb (NotifyNotification *notification)
288
+ PurpleBuddy *buddy;
290
- gaim_debug_info (PLUGIN_ID, "closed_cb(), notification: 0x%x\n", notification);
291
+ purple_debug_info (PLUGIN_ID, "closed_cb(), notification: 0x%x\n", notification);
293
- buddy = (GaimBuddy *)g_object_get_data (G_OBJECT(notification), "buddy");
294
+ buddy = (PurpleBuddy *)g_object_get_data (G_OBJECT(notification), "buddy");
296
g_hash_table_remove (buddy_hash, buddy);
298
@@ -235,11 +239,11 @@
300
notify (const gchar *title,
303
+ PurpleBuddy *buddy)
305
NotifyNotification *notification = NULL;
307
- GaimBuddyIcon *buddy_icon;
308
+ PurpleBuddyIcon *buddy_icon;
313
/* this shouldn't be necessary, file a bug */
314
notify_notification_show (notification, NULL);
316
- gaim_debug_info (PLUGIN_ID, "notify(), update: "
317
+ purple_debug_info (PLUGIN_ID, "notify(), update: "
318
"title: '%s', body: '%s', buddy: '%s'\n",
319
title, tr_body, best_name (buddy));
321
@@ -262,26 +266,26 @@
324
notification = notify_notification_new (title, tr_body, NULL, NULL);
325
- gaim_debug_info (PLUGIN_ID, "notify(), new: "
326
+ purple_debug_info (PLUGIN_ID, "notify(), new: "
327
"title: '%s', body: '%s', buddy: '%s'\n",
328
title, tr_body, best_name (buddy));
332
- buddy_icon = gaim_buddy_get_icon (buddy);
333
+ buddy_icon = purple_buddy_get_icon (buddy);
335
icon = pixbuf_from_buddy_icon (buddy_icon);
336
- gaim_debug_info (PLUGIN_ID, "notify(), has a buddy icon.\n");
337
+ purple_debug_info (PLUGIN_ID, "notify(), has a buddy icon.\n");
339
- icon = gaim_gtk_create_prpl_icon (buddy->account, 1);
340
- gaim_debug_info (PLUGIN_ID, "notify(), has a prpl icon.\n");
341
+ icon = pidgin_create_prpl_icon (buddy->account, 1);
342
+ purple_debug_info (PLUGIN_ID, "notify(), has a prpl icon.\n");
346
notify_notification_set_icon_from_pixbuf (notification, icon);
347
g_object_unref (icon);
349
- gaim_debug_warning (PLUGIN_ID, "notify(), couldn't find any icon!\n");
350
+ purple_debug_warning (PLUGIN_ID, "notify(), couldn't find any icon!\n");
353
g_hash_table_insert (buddy_hash, buddy, notification);
354
@@ -295,13 +299,13 @@
355
notify_notification_add_action (notification, "show", _("Show"), action_cb, NULL, NULL);
357
if (!notify_notification_show (notification, NULL)) {
358
- gaim_debug_error (PLUGIN_ID, "notify(), failed to send notification\n");
359
+ purple_debug_error (PLUGIN_ID, "notify(), failed to send notification\n");
365
-notify_buddy_signon_cb (GaimBuddy *buddy,
366
+notify_buddy_signon_cb (PurpleBuddy *buddy,
369
gchar *tr_name, *title;
370
@@ -309,14 +313,14 @@
372
g_return_if_fail (buddy);
374
- if (!gaim_prefs_get_bool ("/plugins/gtk/libnotify/signon"))
375
+ if (!purple_prefs_get_bool ("/plugins/gtk/libnotify/signon"))
378
if (g_list_find (just_signed_on_accounts, buddy->account))
381
- blocked = gaim_prefs_get_bool ("/plugins/gtk/libnotify/blocked");
382
- if (!gaim_privacy_check (buddy->account, buddy->name) && blocked)
383
+ blocked = purple_prefs_get_bool ("/plugins/gtk/libnotify/blocked");
384
+ if (!purple_privacy_check (buddy->account, buddy->name) && blocked)
387
tr_name = truncate_escape_string (best_name (buddy), 25);
392
-notify_buddy_signoff_cb (GaimBuddy *buddy,
393
+notify_buddy_signoff_cb (PurpleBuddy *buddy,
396
gchar *tr_name, *title;
397
@@ -338,14 +342,14 @@
399
g_return_if_fail (buddy);
401
- if (!gaim_prefs_get_bool ("/plugins/gtk/libnotify/signoff"))
402
+ if (!purple_prefs_get_bool ("/plugins/gtk/libnotify/signoff"))
405
if (g_list_find (just_signed_on_accounts, buddy->account))
408
- blocked = gaim_prefs_get_bool ("/plugins/gtk/libnotify/blocked");
409
- if (!gaim_privacy_check (buddy->account, buddy->name) && blocked)
410
+ blocked = purple_prefs_get_bool ("/plugins/gtk/libnotify/blocked");
411
+ if (!purple_privacy_check (buddy->account, buddy->name) && blocked)
414
tr_name = truncate_escape_string (best_name (buddy), 25);
415
@@ -359,26 +363,26 @@
419
-notify_msg_sent (GaimAccount *account,
420
+notify_msg_sent (PurpleAccount *account,
422
const gchar *message)
425
+ PurpleBuddy *buddy;
426
gchar *title, *body, *tr_name;
429
- buddy = gaim_find_buddy (account, sender);
430
+ buddy = purple_find_buddy (account, sender);
434
- blocked = gaim_prefs_get_bool ("/plugins/gtk/libnotify/blocked");
435
- if (!gaim_privacy_check(account, sender) && blocked)
436
+ blocked = purple_prefs_get_bool ("/plugins/gtk/libnotify/blocked");
437
+ if (!purple_privacy_check(account, sender) && blocked)
440
tr_name = truncate_escape_string (best_name (buddy), 25);
442
title = g_strdup_printf (_("%s says:"), tr_name);
443
- body = gaim_markup_strip_html (message);
444
+ body = purple_markup_strip_html (message);
446
notify (title, body, buddy);
448
@@ -388,28 +392,28 @@
452
-notify_new_message_cb (GaimAccount *account,
453
+notify_new_message_cb (PurpleAccount *account,
455
const gchar *message,
459
- GaimConversation *conv;
460
+ PurpleConversation *conv;
462
- if (!gaim_prefs_get_bool ("/plugins/gtk/libnotify/newmsg"))
463
+ if (!purple_prefs_get_bool ("/plugins/gtk/libnotify/newmsg"))
466
- conv = gaim_find_conversation_with_account (GAIM_CONV_TYPE_IM, sender, account);
467
+ conv = purple_find_conversation_with_account (PURPLE_CONV_TYPE_IM, sender, account);
469
#ifndef DEBUG /* in debug mode, always show notifications */
470
- if (conv && gaim_conversation_has_focus (conv)) {
471
- gaim_debug_info (PLUGIN_ID, "Conversation has focus 0x%x\n", conv);
472
+ if (conv && purple_conversation_has_focus (conv)) {
473
+ purple_debug_info (PLUGIN_ID, "Conversation has focus 0x%x\n", conv);
478
- if (conv && gaim_prefs_get_bool ("/plugins/gtk/libnotify/newconvonly")) {
479
- gaim_debug_info (PLUGIN_ID, "Conversation is not new 0x%x\n", conv);
480
+ if (conv && purple_prefs_get_bool ("/plugins/gtk/libnotify/newconvonly")) {
481
+ purple_debug_info (PLUGIN_ID, "Conversation is not new 0x%x\n", conv);
485
@@ -417,15 +421,15 @@
489
-notify_chat_nick (GaimAccount *account,
490
+notify_chat_nick (PurpleAccount *account,
492
const gchar *message,
493
- GaimConversation *conv,
494
+ PurpleConversation *conv,
499
- nick = (gchar *)gaim_conv_chat_get_nick (GAIM_CONV_CHAT(conv));
500
+ nick = (gchar *)purple_conv_chat_get_nick (PURPLE_CONV_CHAT(conv));
501
if (nick && !strcmp (sender, nick))
504
@@ -436,63 +440,63 @@
508
-plugin_load (GaimPlugin *plugin)
509
+plugin_load (PurplePlugin *plugin)
511
void *conv_handle, *blist_handle, *conn_handle;
513
- if (!notify_is_initted () && !notify_init ("Gaim")) {
514
- gaim_debug_error (PLUGIN_ID, "libnotify not running!\n");
515
+ if (!notify_is_initted () && !notify_init ("Pidgin")) {
516
+ purple_debug_error (PLUGIN_ID, "libnotify not running!\n");
520
- conv_handle = gaim_conversations_get_handle ();
521
- blist_handle = gaim_blist_get_handle ();
522
- conn_handle = gaim_connections_get_handle();
523
+ conv_handle = purple_conversations_get_handle ();
524
+ blist_handle = purple_blist_get_handle ();
525
+ conn_handle = purple_connections_get_handle();
527
buddy_hash = g_hash_table_new (NULL, NULL);
529
- gaim_signal_connect (blist_handle, "buddy-signed-on", plugin,
530
- GAIM_CALLBACK(notify_buddy_signon_cb), NULL);
531
+ purple_signal_connect (blist_handle, "buddy-signed-on", plugin,
532
+ PURPLE_CALLBACK(notify_buddy_signon_cb), NULL);
534
- gaim_signal_connect (blist_handle, "buddy-signed-off", plugin,
535
- GAIM_CALLBACK(notify_buddy_signoff_cb), NULL);
536
+ purple_signal_connect (blist_handle, "buddy-signed-off", plugin,
537
+ PURPLE_CALLBACK(notify_buddy_signoff_cb), NULL);
539
- gaim_signal_connect (conv_handle, "received-im-msg", plugin,
540
- GAIM_CALLBACK(notify_new_message_cb), NULL);
541
+ purple_signal_connect (conv_handle, "received-im-msg", plugin,
542
+ PURPLE_CALLBACK(notify_new_message_cb), NULL);
544
- gaim_signal_connect (conv_handle, "received-chat-msg", plugin,
545
- GAIM_CALLBACK(notify_chat_nick), NULL);
546
+ purple_signal_connect (conv_handle, "received-chat-msg", plugin,
547
+ PURPLE_CALLBACK(notify_chat_nick), NULL);
549
/* used just to not display the flood of guifications we'd get */
550
- gaim_signal_connect (conn_handle, "signed-on", plugin,
551
- GAIM_CALLBACK(event_connection_throttle), NULL);
552
+ purple_signal_connect (conn_handle, "signed-on", plugin,
553
+ PURPLE_CALLBACK(event_connection_throttle), NULL);
559
-plugin_unload (GaimPlugin *plugin)
560
+plugin_unload (PurplePlugin *plugin)
562
void *conv_handle, *blist_handle, *conn_handle;
564
- conv_handle = gaim_conversations_get_handle ();
565
- blist_handle = gaim_blist_get_handle ();
566
- conn_handle = gaim_connections_get_handle();
567
+ conv_handle = purple_conversations_get_handle ();
568
+ blist_handle = purple_blist_get_handle ();
569
+ conn_handle = purple_connections_get_handle();
571
- gaim_signal_disconnect (blist_handle, "buddy-signed-on", plugin,
572
- GAIM_CALLBACK(notify_buddy_signon_cb));
573
+ purple_signal_disconnect (blist_handle, "buddy-signed-on", plugin,
574
+ PURPLE_CALLBACK(notify_buddy_signon_cb));
576
- gaim_signal_disconnect (blist_handle, "buddy-signed-off", plugin,
577
- GAIM_CALLBACK(notify_buddy_signoff_cb));
578
+ purple_signal_disconnect (blist_handle, "buddy-signed-off", plugin,
579
+ PURPLE_CALLBACK(notify_buddy_signoff_cb));
581
- gaim_signal_disconnect (conv_handle, "received-im-msg", plugin,
582
- GAIM_CALLBACK(notify_new_message_cb));
583
+ purple_signal_disconnect (conv_handle, "received-im-msg", plugin,
584
+ PURPLE_CALLBACK(notify_new_message_cb));
586
- gaim_signal_disconnect (conv_handle, "received-chat-msg", plugin,
587
- GAIM_CALLBACK(notify_chat_nick));
588
+ purple_signal_disconnect (conv_handle, "received-chat-msg", plugin,
589
+ PURPLE_CALLBACK(notify_chat_nick));
591
- gaim_signal_disconnect (conn_handle, "signed-on", plugin,
592
- GAIM_CALLBACK(event_connection_throttle));
593
+ purple_signal_disconnect (conn_handle, "signed-on", plugin,
594
+ PURPLE_CALLBACK(event_connection_throttle));
596
g_hash_table_destroy (buddy_hash);
598
@@ -501,21 +505,21 @@
602
-static GaimPluginUiInfo prefs_info = {
603
+static PurplePluginUiInfo prefs_info = {
604
get_plugin_pref_frame,
605
0, /* page num (Reserved) */
606
NULL /* frame (Reserved) */
609
-static GaimPluginInfo info = {
610
- GAIM_PLUGIN_MAGIC, /* api version */
611
- GAIM_MAJOR_VERSION,
612
- GAIM_MINOR_VERSION,
613
- GAIM_PLUGIN_STANDARD, /* type */
614
+static PurplePluginInfo info = {
615
+ PURPLE_PLUGIN_MAGIC, /* api version */
616
+ PURPLE_MAJOR_VERSION,
617
+ PURPLE_MINOR_VERSION,
618
+ PURPLE_PLUGIN_STANDARD, /* type */
619
0, /* ui requirement */
621
NULL, /* dependencies */
622
- GAIM_PRIORITY_DEFAULT, /* priority */
623
+ PURPLE_PRIORITY_DEFAULT, /* priority */
627
@@ -535,22 +539,22 @@
631
-init_plugin (GaimPlugin *plugin)
632
+init_plugin (PurplePlugin *plugin)
634
bindtextdomain (PACKAGE, LOCALEDIR);
635
bind_textdomain_codeset (PACKAGE, "UTF-8");
637
info.name = _("Libnotify Popups");
638
info.summary = _("Displays popups via libnotify.");
639
- info.description = _("Gaim-libnotify:\nDisplays popups via libnotify.");
640
+ info.description = _("Pidgin-libnotify:\nDisplays popups via libnotify.");
642
- gaim_prefs_add_none ("/plugins/gtk/libnotify");
643
- gaim_prefs_add_bool ("/plugins/gtk/libnotify/newmsg", TRUE);
644
- gaim_prefs_add_bool ("/plugins/gtk/libnotify/blocked", TRUE);
645
- gaim_prefs_add_bool ("/plugins/gtk/libnotify/newconvonly", FALSE);
646
- gaim_prefs_add_bool ("/plugins/gtk/libnotify/signon", TRUE);
647
- gaim_prefs_add_bool ("/plugins/gtk/libnotify/signoff", FALSE);
648
+ purple_prefs_add_none ("/plugins/gtk/libnotify");
649
+ purple_prefs_add_bool ("/plugins/gtk/libnotify/newmsg", TRUE);
650
+ purple_prefs_add_bool ("/plugins/gtk/libnotify/blocked", TRUE);
651
+ purple_prefs_add_bool ("/plugins/gtk/libnotify/newconvonly", FALSE);
652
+ purple_prefs_add_bool ("/plugins/gtk/libnotify/signon", TRUE);
653
+ purple_prefs_add_bool ("/plugins/gtk/libnotify/signoff", FALSE);
656
-GAIM_INIT_PLUGIN(notify, init_plugin, info)
657
+PURPLE_INIT_PLUGIN(notify, init_plugin, info)
659
--- Makefile.am 2005-12-24 02:44:33.000000000 +0000
660
+++ Makefile.am 2006-11-17 00:37:25.000000000 +0000
665
-SUBDIRS = intl po src
668
--- /dev/null 2007-05-03 09:23:19.077225576 +0100
669
+++ po/sl.po 2006-11-17 22:17:27.000000000 +0000
671
+# Slovenian (sl) translation of gaim-libnotify.
672
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
673
+# This file is distributed under the same license as the gaim-libnotify package.
675
+# Matic Žgur <mr.zgur@gmail.com>, 2006.
679
+"Project-Id-Version: gaim-libnotify\n"
680
+"Report-Msgid-Bugs-To: \n"
681
+"POT-Creation-Date: 2006-11-17 00:40+0000\n"
682
+"PO-Revision-Date: 2006-11-16 18:11+0100\n"
683
+"Last-Translator: Matic Žgur <mr.zgur@gmail.com>\n"
684
+"Language-Team: Slovenian <LL@li.org>\n"
685
+"MIME-Version: 1.0\n"
686
+"Content-Type: text/plain; charset=utf-8\n"
687
+"Content-Transfer-Encoding: 8bit\n"
688
+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
689
+"%100==4 ? 2 : 3);\n"
690
+"X-Poedit-Language: Slovenian\n"
692
+#: src/gaim-libnotify.c:57
693
+msgid "New messages"
694
+msgstr "Nova sporočila"
696
+#: src/gaim-libnotify.c:62
697
+msgid "Only new conversations"
698
+msgstr "Samo novi pogovori"
700
+#: src/gaim-libnotify.c:67
701
+msgid "Ignore events from blocked users"
702
+msgstr "Prezri dogodke pri blokiranih uporabnikih"
704
+#: src/gaim-libnotify.c:72
705
+msgid "Buddy signs on"
706
+msgstr "Prijatelj se prijavi"
708
+#: src/gaim-libnotify.c:77
709
+msgid "Buddy signs off"
710
+msgstr "Prijatelj se odjavi"
712
+#: src/gaim-libnotify.c:295
716
+#: src/gaim-libnotify.c:324
718
+msgid "%s signed on"
719
+msgstr "%s se je prijavil/a"
721
+#: src/gaim-libnotify.c:353
723
+msgid "%s signed off"
724
+msgstr "%s se je odjavil/a"
726
+#: src/gaim-libnotify.c:380
731
+#: src/gaim-libnotify.c:543
732
+msgid "Libnotify Popups"
733
+msgstr "Pojavna okna libnotify"
735
+#: src/gaim-libnotify.c:544
736
+msgid "Displays popups via libnotify."
737
+msgstr "Prikaže pojavna okna preko libnotify."
739
+#: src/gaim-libnotify.c:545
742
+"Displays popups via libnotify."
745
+"Prikaže pojavna okna preko libnotify."
746
--- src/Makefile.am 2005-12-24 02:44:33.000000000 +0000
747
+++ src/Makefile.am 2007-05-03 11:34:53.000000000 +0100
749
-gddir = $(GAIM_LIBDIR)/gaim
750
+gddir = $(LIBPURPLE_LIBDIR)/purple-2
752
gaim_libnotify_la_LDFLAGS = -module -avoid-version
758
- -DLIBDIR=\"$(GAIM_LIBDIR)/gaim/\" \
759
- -DDATADIR=\"$(GAIM_DATADIR)\" \
760
- -DLOCALEDIR=\"$(GAIM_DATADIR)/locale\" \
761
+ -DLIBDIR=\"$(LIBPURPLE_LIBDIR)/purple-2/\" \
762
+ -DDATADIR=\"$(LIBPURPLE_DATADIR)\" \
763
+ -DLOCALEDIR=\"$(LIBPURPLE_DATADIR)/locale\" \
769
+ $(LIBPURPLE_CFLAGS) \
770
$(LIBNOTIFY_CFLAGS) \