Репозитории ALT
S: | 3.7.0-alt0.6 |
4.1: | 2.2.9-alt1.1 |
4.0: | 2.2.9-alt1.1 |
3.0: | 1.0.4-alt1 |
Группа :: Сети/Почта
Пакет: sylpheed
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: sylpheed-0.9.1-alt-nullpass.patch
Скачать
Скачать
diff -urN -x'*~' -xTAGS sylpheed-0.9.1-orig/src/action.c sylpheed-0.9.1/src/action.c
--- sylpheed-0.9.1-orig/src/action.c 2003-05-26 07:58:32 +0400
+++ sylpheed-0.9.1/src/action.c 2003-06-01 16:57:58 +0400
@@ -1227,7 +1227,8 @@
" %s"),
action);
user_str = input_dialog_with_invisible
- (_("Action's hidden user argument"), message, NULL);
+ (_("Action's hidden user argument"), message, NULL,
+ TRUE);
break;
case ACTION_USER_STR:
message = g_strdup_printf
diff -urN -x'*~' -xTAGS sylpheed-0.9.1-orig/src/inputdialog.c sylpheed-0.9.1/src/inputdialog.c
--- sylpheed-0.9.1-orig/src/inputdialog.c 2003-04-21 15:27:44 +0400
+++ sylpheed-0.9.1/src/inputdialog.c 2003-06-01 16:59:26 +0400
@@ -64,7 +64,8 @@
static void input_dialog_create (void);
static gchar *input_dialog_open (const gchar *title,
const gchar *message,
- const gchar *default_string);
+ const gchar *default_string,
+ gboolean accept_empty);
static void input_dialog_set (const gchar *title,
const gchar *message,
const gchar *default_string);
@@ -96,11 +97,12 @@
gtk_widget_show(entry);
gtk_entry_set_visibility(GTK_ENTRY(entry), TRUE);
- return input_dialog_open(title, message, default_string);
+ return input_dialog_open(title, message, default_string, FALSE);
}
gchar *input_dialog_with_invisible(const gchar *title, const gchar *message,
- const gchar *default_string)
+ const gchar *default_string,
+ gboolean accept_empty)
{
if (dialog && GTK_WIDGET_VISIBLE(dialog)) return NULL;
@@ -112,7 +114,7 @@
gtk_widget_show(entry);
gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
- return input_dialog_open(title, message, default_string);
+ return input_dialog_open(title, message, default_string, accept_empty);
}
gchar *input_dialog_combo(const gchar *title, const gchar *message,
@@ -140,7 +142,7 @@
gtk_combo_set_case_sensitive(GTK_COMBO(combo), case_sensitive);
- return input_dialog_open(title, message, default_string);
+ return input_dialog_open(title, message, default_string, FALSE);
}
gchar *input_dialog_query_password(const gchar *server, const gchar *user)
@@ -150,7 +152,8 @@
message = g_strdup_printf(_("Input password for %s on %s:"),
user, server);
- pass = input_dialog_with_invisible(_("Input password"), message, NULL);
+ pass = input_dialog_with_invisible(_("Input password"), message, NULL,
+ TRUE);
g_free(message);
return pass;
@@ -216,7 +219,8 @@
}
static gchar *input_dialog_open(const gchar *title, const gchar *message,
- const gchar *default_string)
+ const gchar *default_string,
+ gboolean accept_empty)
{
gchar *str;
@@ -244,7 +248,7 @@
editable = GTK_EDITABLE(entry);
str = gtk_editable_get_chars(editable, 0, -1);
- if (str && *str == '\0') {
+ if (!accept_empty && str && *str == '\0') {
g_free(str);
str = NULL;
}
diff -urN -x'*~' -xTAGS sylpheed-0.9.1-orig/src/inputdialog.h sylpheed-0.9.1/src/inputdialog.h
--- sylpheed-0.9.1-orig/src/inputdialog.h 2002-04-22 05:13:26 +0400
+++ sylpheed-0.9.1/src/inputdialog.h 2003-06-01 16:57:58 +0400
@@ -27,7 +27,8 @@
const gchar *default_string);
gchar *input_dialog_with_invisible (const gchar *title,
const gchar *message,
- const gchar *default_string);
+ const gchar *default_string,
+ gboolean accept_empty);
gchar *input_dialog_combo (const gchar *title,
const gchar *message,
const gchar *default_string,