[Pkg-privacy-commits] [pidgin-otr] 94/255: Updates from code review round 2.
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 12:51:29 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch experimental
in repository pidgin-otr.
commit 0ab7f76a77f55966f1b259c8d1de2bbff1d963e7
Author: Rob Smits <rdfsmits at cs.uwaterloo.ca>
Date: Wed Jun 6 16:09:26 2012 -0400
Updates from code review round 2.
---
Makefile.mingw | 2 +-
NEWS | 27 +++++++++++++++++++++++++++
configure.ac | 2 +-
dialogs.h | 2 +-
gtk-dialog.c | 6 ++----
gtk-ui.c | 2 +-
otr-plugin.c | 32 ++++++++++++++++++--------------
packaging/windows/pidgin-otr.nsi | 2 +-
8 files changed, 52 insertions(+), 23 deletions(-)
diff --git a/Makefile.mingw b/Makefile.mingw
index 9130f35..5383af6 100644
--- a/Makefile.mingw
+++ b/Makefile.mingw
@@ -1,7 +1,7 @@
WIN32=1
# The version number to put in the plugin info
-PIDGIN_OTR_VERSION = 4.0.0-BETA1
+PIDGIN_OTR_VERSION = 4.0.0-beta1
# Name of the gettext domain
GETTEXT_PACKAGE = pidgin-otr
diff --git a/NEWS b/NEWS
index 8d13e6f..870117f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,30 @@
+June 2012:
+
+- The plugin now supports multiple OTR conversations with the same
+ buddy who is logged in at multiple locations. In this case, a new
+ OTR menu will appear, which allows you to select which session an
+ outgoing message is indended for. Note that concurrent SMP
+ authentications with the same buddy who is logged in multiple times
+ is not supported (starting a second authentication will end the
+ first).
+- During a private conversation with a buddy, an incoming unencrypted
+ message will now trigger the regular incoming message notifications.
+ In Pidgin this includes showing the message in the top-right
+ notification area, if it is normally configured to do so.
+- New Italian, Swedish, Polish and Vietnamese translations. Updates to
+ the French translation.
+- When a private conversation begins, the plugin will indicate whether
+ Pidgin is configured to log the conversation.
+- By default, OTR conversations will not be logged by Pidgin.
+- Fingerprints in the manual authentication dialog are now selectable
+- The plugin will no longer delete the OTR menus if a non-foreground
+ conversation window is closed.
+- Except on WIN32, the plugin will now set the umask to 0077 before
+ creating the otr.* files in the purple directory so that they end up
+ mode 0600.
+- The menu item now says "Reauthenticate buddy" when the buddy is
+ already authenticated.
+
28 May 2008:
- The functionality of the OTR button has now moved to a menu. There's
diff --git a/configure.ac b/configure.ac
index 62e38ca..4ca6c26 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce configure.
-AC_INIT(pidgin-otr, 4.0.0-BETA1)
+AC_INIT(pidgin-otr, 4.0.0-beta1)
AM_CONFIG_HEADER(config.h)
diff --git a/dialogs.h b/dialogs.h
index 03d3029..4a9e93f 100644
--- a/dialogs.h
+++ b/dialogs.h
@@ -35,7 +35,7 @@
#define SESSIONID_HELPURL BASE_HELPURL "sessionid.php"
#define UNVERIFIED_HELPURL BASE_HELPURL "unverified.php"
#define LEVELS_HELPURL BASE_HELPURL "levels.php"
-#define SESSIONS_HELPURL BASE_HELPURL "sessions.php"
+#define SESSIONS_HELPURL BASE_HELPURL "sessions.php"
typedef struct s_OtrgDialogWait *OtrgDialogWaitHandle;
diff --git a/gtk-dialog.c b/gtk-dialog.c
index a99986b..21d9a3d 100644
--- a/gtk-dialog.c
+++ b/gtk-dialog.c
@@ -2299,7 +2299,7 @@ static void build_meta_instance_submenu( PurpleConversation *conv,
/* Build an OTR buddy menu (where the root menu item is an icon corresponding
* to the conversation status) for a conversation that has multiple instances.
- * The ConnContexts are given in the GList "instances." Keep track of the
+ * The ConnContexts are given in the GList "instances". Keep track of the
* position this menu was inserted in the "pos" argument. "active_conv"
* corresponds to whether this conversation is the active PurpleConversation
* for this PidginConversation pane.
@@ -2844,13 +2844,11 @@ static void otrg_gtk_dialog_new_purple_conv(PurpleConversation *conv)
{
PidginConversation *gtkconv = PIDGIN_CONVERSATION(conv);
ConnContext *context;
+ ConvOrContext *convctx;
GtkWidget *bbox;
GtkWidget *button;
GtkWidget *label;
GtkWidget *bwbox;
-
- ConvOrContext *convctx;
-
GtkWidget *icon;
GtkWidget *menu;
diff --git a/gtk-ui.c b/gtk-ui.c
index 2d6f72e..f42a2df 100644
--- a/gtk-ui.c
+++ b/gtk-ui.c
@@ -317,7 +317,7 @@ static void clist_unselected(GtkWidget *widget, gint row, gint column,
}
/* For a given fingerprint, find the master context that the fingerprint is
- * pointing to, iterate through it and all its childdren.
+ * pointing to, iterate through it and all its children.
* Of the contexts that are using this fingerprint, return a value that
* corresponds to the "best" trust level among these.
*/
diff --git a/otr-plugin.c b/otr-plugin.c
index 80e78f8..b2f58f1 100644
--- a/otr-plugin.c
+++ b/otr-plugin.c
@@ -77,9 +77,10 @@
#include "gtk-ui.h"
#include "gtk-dialog.h"
+/* Controls a beta warning/expiry dialog */
#define BETA_DIALOG 1
-#if defined BETA_DIALOG && defined USING_GTK /* Only for beta */
+#if BETA_DIALOG && defined USING_GTK /* Only for beta */
#include "gtkblist.h"
#endif
@@ -471,8 +472,8 @@ static void handle_msg_event_cb(void *opdata, OtrlMessageEvent msg_event,
case OTRL_MSGEVENT_ENCRYPTION_ERROR:
display_otr_message_or_notify(opdata, context->accountname,
context->protocol, context->username, _("An error occurred "
- "when encrypting your message. The message was not sent.")
- , 1, OTRL_NOTIFY_ERROR, _("Error encrypting message"),
+ "when encrypting your message. The message was not sent."),
+ 1, OTRL_NOTIFY_ERROR, _("Error encrypting message"),
_("An error occurred when encrypting your message"),
_("The message was not sent."));
break;
@@ -489,6 +490,9 @@ static void handle_msg_event_cb(void *opdata, OtrlMessageEvent msg_event,
g_free(buf);
break;
case OTRL_MSGEVENT_SETUP_ERROR:
+ if (!err) {
+ err = GPG_ERR_INV_VALUE;
+ }
switch(gcry_err_code(err)) {
case GPG_ERR_INV_VALUE:
buf = g_strdup(_("Error setting up private "
@@ -502,7 +506,7 @@ static void handle_msg_event_cb(void *opdata, OtrlMessageEvent msg_event,
display_otr_message_or_notify(opdata, context->accountname,
context->protocol, context->username, buf, 1,
- OTRL_NOTIFY_ERROR, "OTR Error", buf, NULL);
+ OTRL_NOTIFY_ERROR, _("OTR Error"), buf, NULL);
g_free(buf);
break;
case OTRL_MSGEVENT_MSG_REFLECTED:
@@ -513,7 +517,7 @@ static void handle_msg_event_cb(void *opdata, OtrlMessageEvent msg_event,
"You are either trying to talk to yourself, "
"or someone is reflecting your messages back "
"at you."), 1, OTRL_NOTIFY_ERROR,
- "OTR Error", _("We are receiving our own OTR messages."),
+ _("OTR Error"), _("We are receiving our own OTR messages."),
_("You are either trying to talk to yourself, "
"or someone is reflecting your messages back "
"at you."));
@@ -540,7 +544,7 @@ static void handle_msg_event_cb(void *opdata, OtrlMessageEvent msg_event,
"encrypted message from %s."), context->username);
display_otr_message_or_notify(opdata, context->accountname,
context->protocol, context->username, buf, 1,
- OTRL_NOTIFY_ERROR, "OTR Error", buf, NULL);
+ OTRL_NOTIFY_ERROR, _("OTR Error"), buf, NULL);
g_free(buf);
break;
case OTRL_MSGEVENT_RCVDMSG_MALFORMED:
@@ -548,7 +552,7 @@ static void handle_msg_event_cb(void *opdata, OtrlMessageEvent msg_event,
"message from %s."), context->username);
display_otr_message_or_notify(opdata, context->accountname,
context->protocol, context->username, buf, 1,
- OTRL_NOTIFY_ERROR, "OTR Error", buf, NULL);
+ OTRL_NOTIFY_ERROR, _("OTR Error"), buf, NULL);
g_free(buf);
break;
case OTRL_MSGEVENT_LOG_HEARTBEAT_RCVD:
@@ -566,7 +570,7 @@ static void handle_msg_event_cb(void *opdata, OtrlMessageEvent msg_event,
case OTRL_MSGEVENT_RCVDMSG_GENERAL_ERR:
display_otr_message_or_notify(opdata, context->accountname,
context->protocol, context->username, message, 1,
- OTRL_NOTIFY_ERROR, "OTR Error", message, NULL);
+ OTRL_NOTIFY_ERROR, _("OTR Error"), message, NULL);
break;
case OTRL_MSGEVENT_RCVDMSG_UNENCRYPTED:
buf = g_strdup_printf(_("<b>The following message received "
@@ -871,7 +875,7 @@ static void process_conv_create(PurpleConversation *conv, void *data)
OtrlMessageEvent * msg_event;
if (!conv) return;
- /* If this malloc fails (or the others below), trouble will be
+ /* If this malloc fails (or the other below), trouble will be
* unavoidable. */
selected_instance = g_malloc(sizeof(otrl_instag_t));
*selected_instance = OTRL_INSTAG_BEST;
@@ -1168,7 +1172,7 @@ static gboolean otr_plugin_load(PurplePlugin *handle)
FILE *privf;
FILE *storef;
FILE *instagf;
-#if defined BETA_DIALOG && defined USING_GTK /* Only for beta */
+#if BETA_DIALOG && defined USING_GTK /* Only for beta */
GtkWidget *dialog;
GtkWidget *dialog_text;
PidginBuddyList *blist;
@@ -1182,11 +1186,11 @@ static gboolean otr_plugin_load(PurplePlugin *handle)
return 0;
}
-#if defined BETA_DIALOG && defined USING_GTK /* Only for beta */
+#if BETA_DIALOG && defined USING_GTK /* Only for beta */
blist = pidgin_blist_get_default_gtk_blist();
if (time(NULL) > 1356998400) /* 2013-01-01 */ {
- buf = g_strdup_printf(_("OTR PLUGIN V%s"), PIDGIN_OTR_VERSION);
+ buf = g_strdup_printf(_("OTR PLUGIN v%s"), PIDGIN_OTR_VERSION);
dialog = gtk_dialog_new_with_buttons (buf,
GTK_WINDOW(blist->window),
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
@@ -1198,7 +1202,7 @@ static gboolean otr_plugin_load(PurplePlugin *handle)
buf = g_strdup_printf(_("This beta copy of the "
"Off-the-Record Messaging v%s Pidgin plugin has expired as of "
"2013-01-01. Please look for an updated release at "
- "http://otr.cypherpunks.ca."), PIDGIN_OTR_VERSION);
+ "http://otr.cypherpunks.ca/"), PIDGIN_OTR_VERSION);
gtk_label_set_text(GTK_LABEL(dialog_text), buf);
gtk_widget_show(dialog_text);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), dialog_text,
@@ -1213,7 +1217,7 @@ static gboolean otr_plugin_load(PurplePlugin *handle)
return 0;
}
- buf = g_strdup_printf(_("OTR PLUGIN V%s"), PIDGIN_OTR_VERSION);
+ buf = g_strdup_printf(_("OTR PLUGIN v%s"), PIDGIN_OTR_VERSION);
dialog = gtk_dialog_new_with_buttons (buf,
GTK_WINDOW(blist->window),
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
diff --git a/packaging/windows/pidgin-otr.nsi b/packaging/windows/pidgin-otr.nsi
index 709dcc4..d8f7d75 100644
--- a/packaging/windows/pidgin-otr.nsi
+++ b/packaging/windows/pidgin-otr.nsi
@@ -26,7 +26,7 @@
; todo: SetBrandingImage
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "pidgin-otr"
-!define PRODUCT_VERSION "4.0.0-0-BETA1"
+!define PRODUCT_VERSION "4.0.0-0-beta1"
!define PRODUCT_PUBLISHER "Cypherpunks CA"
!define PRODUCT_WEB_SITE "http://otr.cypherpunks.ca/"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pidgin-otr.git
More information about the Pkg-privacy-commits
mailing list