commit 56ec09cbfa57de804bbe7c93663f60e062e64778
parent 2a90c1d2f0b50af5304a7a795651a18c55a3e073
Author: Ricardo Mones <ricardo@mones.org>
Date: Mon, 6 Feb 2017 14:24:57 +0100
A bit more room for alertpanel messages
And same room for all of them. The current sizes were so small that
a somewhat large list of failed-to-load plugins appeared truncated
in the warning message.
Diffstat:
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/src/alertpanel.c b/src/alertpanel.c
@@ -1,6 +1,6 @@
/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2017 Hiroyuki Yamamoto and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,7 +14,6 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
*/
#ifdef HAVE_CONFIG_H
@@ -42,6 +41,7 @@
#define ALERT_PANEL_WIDTH 380
#define TITLE_HEIGHT 72
#define MESSAGE_HEIGHT 62
+#define ALERT_PANEL_BUFSIZE 1024
static AlertValue value;
static gboolean alertpanel_is_open = FALSE;
@@ -136,7 +136,7 @@ static void alertpanel_message(const gchar *title, const gchar *message, gint ty
void alertpanel_notice(const gchar *format, ...)
{
va_list args;
- gchar buf[256];
+ gchar buf[ALERT_PANEL_BUFSIZE];
va_start(args, format);
g_vsnprintf(buf, sizeof(buf), format, args);
@@ -149,7 +149,7 @@ void alertpanel_notice(const gchar *format, ...)
void alertpanel_warning(const gchar *format, ...)
{
va_list args;
- gchar buf[256];
+ gchar buf[ALERT_PANEL_BUFSIZE];
va_start(args, format);
g_vsnprintf(buf, sizeof(buf), format, args);
@@ -162,7 +162,7 @@ void alertpanel_warning(const gchar *format, ...)
void alertpanel_error(const gchar *format, ...)
{
va_list args;
- gchar buf[512];
+ gchar buf[ALERT_PANEL_BUFSIZE];
va_start(args, format);
g_vsnprintf(buf, sizeof(buf), format, args);
@@ -181,7 +181,7 @@ void alertpanel_error_log(const gchar *format, ...)
va_list args;
int val;
MainWindow *mainwin;
- gchar buf[256];
+ gchar buf[ALERT_PANEL_BUFSIZE];
va_start(args, format);
g_vsnprintf(buf, sizeof(buf), format, args);
diff --git a/src/alertpanel.h b/src/alertpanel.h
@@ -1,6 +1,6 @@
/*
- * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
+ * Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
+ * Copyright (C) 1999-2017 Hiroyuki Yamamoto and the Claws Mail team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -14,7 +14,6 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
*/
#ifndef __ALERTPANEL_H__