sync with sylpheed 0.7.2cvs14
This commit is contained in:
parent
6fb59a8e82
commit
caf6fd51e6
36 changed files with 194 additions and 143 deletions
28
ChangeLog
28
ChangeLog
|
@ -1,3 +1,31 @@
|
|||
2002-02-22
|
||||
|
||||
* src/manage_window.[ch]: fixed a bug that caused crash when
|
||||
the main window was hidden.
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(): new macro.
|
||||
Monitor "unmap_event", "destroy" events.
|
||||
* src/account.c;
|
||||
src/addressbook.c
|
||||
src/compose.c
|
||||
src/export.c
|
||||
src/filesel.c
|
||||
src/foldersel.c
|
||||
src/grouplistdialog.c
|
||||
src/import.c
|
||||
src/inputdialog.c
|
||||
src/mainwindow.c
|
||||
src/message_search.c
|
||||
src/passphrase.c
|
||||
src/prefs_account.c
|
||||
src/prefs_common.c
|
||||
src/prefs_customheader.c
|
||||
src/prefs_display_header.c
|
||||
src/prefs_filter.c
|
||||
src/prefs_template.c
|
||||
src/summary_search.c
|
||||
src/summaryview.c: use MANAGE_WINDO_SIGNALS_CONNECT() macro to
|
||||
connect signals for window management.
|
||||
|
||||
2002-02-21
|
||||
|
||||
* src/prefs_account.[ch]: added receive size limit option.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2002-02-23 [paul] 0.7.2claws8
|
||||
|
||||
* sync with sylpheed 0.7.2cvs14
|
||||
see ChangeLog entries 2002-02-22 and 2002-02-23
|
||||
|
||||
2002-02-22 [christoph] 0.7.2claws7
|
||||
|
||||
* src/quote_fmt.c
|
||||
|
|
28
ChangeLog.jp
28
ChangeLog.jp
|
@ -1,3 +1,31 @@
|
|||
2002-02-22
|
||||
|
||||
* src/manage_window.[ch]: メインウィンドウを隠しているときに
|
||||
クラッシュするバグを修正。
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(): 新規マクロ。
|
||||
"unmap_event", "destroy" イベントを監視するようにした。
|
||||
* src/account.c;
|
||||
src/addressbook.c
|
||||
src/compose.c
|
||||
src/export.c
|
||||
src/filesel.c
|
||||
src/foldersel.c
|
||||
src/grouplistdialog.c
|
||||
src/import.c
|
||||
src/inputdialog.c
|
||||
src/mainwindow.c
|
||||
src/message_search.c
|
||||
src/passphrase.c
|
||||
src/prefs_account.c
|
||||
src/prefs_common.c
|
||||
src/prefs_customheader.c
|
||||
src/prefs_display_header.c
|
||||
src/prefs_filter.c
|
||||
src/prefs_template.c
|
||||
src/summary_search.c
|
||||
src/summaryview.c: ウィンドウ管理のためにシグナルを接続するのに
|
||||
MANAGE_WINDO_SIGNALS_CONNECT() マクロを使用するようにした。
|
||||
|
||||
2002-02-21
|
||||
|
||||
* src/prefs_account.[ch]: 受信サイズ制限のオプションを追加。
|
||||
|
|
|
@ -8,7 +8,7 @@ MINOR_VERSION=7
|
|||
MICRO_VERSION=2
|
||||
INTERFACE_AGE=0
|
||||
BINARY_AGE=0
|
||||
EXTRA_VERSION=claws7
|
||||
EXTRA_VERSION=claws8
|
||||
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
|
||||
|
||||
dnl set $target
|
||||
|
|
|
@ -415,10 +415,7 @@ static void account_edit_create(void)
|
|||
GTK_SIGNAL_FUNC (account_delete_event), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC (account_key_pressed), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC (manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC (manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT (window);
|
||||
gtk_widget_realize(window);
|
||||
|
||||
vbox = gtk_vbox_new (FALSE, 10);
|
||||
|
|
|
@ -546,10 +546,7 @@ static void addressbook_create(void)
|
|||
GTK_SIGNAL_FUNC(addressbook_close), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 0);
|
||||
gtk_container_add(GTK_CONTAINER(window), vbox);
|
||||
|
|
|
@ -4239,10 +4239,7 @@ static Compose *compose_create(PrefsAccount *account, ComposeMode mode)
|
|||
GTK_SIGNAL_FUNC(compose_delete_cb), compose);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "destroy",
|
||||
GTK_SIGNAL_FUNC(compose_destroy_cb), compose);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
gtk_widget_realize(window);
|
||||
|
||||
gtkut_widget_set_composer_icon(window);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -128,10 +128,7 @@ static void export_create(void)
|
|||
GTK_SIGNAL_FUNC(delete_event), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 4);
|
||||
gtk_container_add(GTK_CONTAINER(window), vbox);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -175,10 +175,7 @@ static void filesel_create(const gchar *title, gboolean multiple_files)
|
|||
GTK_SIGNAL_FUNC(delete_event), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(filesel), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(filesel), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(filesel), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(filesel);
|
||||
|
||||
gtk_window_set_modal(GTK_WINDOW(filesel), TRUE);
|
||||
|
||||
|
|
|
@ -149,10 +149,7 @@ static void foldersel_create(void)
|
|||
GTK_SIGNAL_FUNC(delete_event), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 4);
|
||||
gtk_container_add(GTK_CONTAINER(window), vbox);
|
||||
|
|
|
@ -74,7 +74,7 @@ static void grouplist_dialog_set_list (const gchar *pattern,
|
|||
gboolean refresh);
|
||||
static void grouplist_search (void);
|
||||
static void grouplist_clear (void);
|
||||
static void grouplist_recv_func (SockInfo *sock,
|
||||
static gboolean grouplist_recv_func (SockInfo *sock,
|
||||
gint count,
|
||||
gint read_bytes,
|
||||
gpointer data);
|
||||
|
@ -127,7 +127,7 @@ GSList *grouplist_dialog(Folder *folder)
|
|||
|
||||
grouplist_dialog_set_list(NULL, TRUE);
|
||||
|
||||
gtk_main();
|
||||
if (ack) gtk_main();
|
||||
|
||||
manage_window_focus_out(dialog, NULL, NULL);
|
||||
gtk_widget_hide(dialog);
|
||||
|
@ -175,10 +175,7 @@ static void grouplist_dialog_create(void)
|
|||
GTK_SIGNAL_FUNC(cancel_clicked), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(dialog);
|
||||
|
||||
gtk_widget_realize(dialog);
|
||||
|
||||
|
@ -391,12 +388,13 @@ static void grouplist_dialog_set_list(const gchar *pattern, gboolean refresh)
|
|||
pattern = "*";
|
||||
|
||||
if (refresh) {
|
||||
ack = TRUE;
|
||||
grouplist_clear();
|
||||
recv_set_ui_func(grouplist_recv_func, NULL);
|
||||
group_list = news_get_group_list(news_folder);
|
||||
group_list = g_slist_reverse(group_list);
|
||||
recv_set_ui_func(NULL, NULL);
|
||||
if (group_list == NULL) {
|
||||
if (group_list == NULL && ack == TRUE) {
|
||||
alertpanel_error(_("Can't retrieve newsgroup list."));
|
||||
locked = FALSE;
|
||||
return;
|
||||
|
@ -470,8 +468,8 @@ static void grouplist_clear(void)
|
|||
NULL);
|
||||
}
|
||||
|
||||
static void grouplist_recv_func(SockInfo *sock, gint count, gint read_bytes,
|
||||
gpointer data)
|
||||
static gboolean grouplist_recv_func(SockInfo *sock, gint count, gint read_bytes,
|
||||
gpointer data)
|
||||
{
|
||||
gchar buf[BUFFSIZE];
|
||||
|
||||
|
@ -480,6 +478,10 @@ static void grouplist_recv_func(SockInfo *sock, gint count, gint read_bytes,
|
|||
count, to_human_readable(read_bytes));
|
||||
gtk_label_set_text(GTK_LABEL(status_label), buf);
|
||||
GTK_EVENTS_FLUSH();
|
||||
if (ack == FALSE)
|
||||
return FALSE;
|
||||
else
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void ok_clicked(GtkWidget *widget, gpointer data)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -137,10 +137,7 @@ static void import_create(void)
|
|||
GTK_SIGNAL_FUNC(delete_event), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 4);
|
||||
gtk_container_add(GTK_CONTAINER(window), vbox);
|
||||
|
|
14
src/inc.c
14
src/inc.c
|
@ -97,7 +97,7 @@ static gint pop3_automaton_terminate (SockInfo *source,
|
|||
static GHashTable *inc_get_uidl_table (PrefsAccount *ac_prefs);
|
||||
static void inc_write_uidl_list (Pop3State *state);
|
||||
|
||||
static void inc_pop3_recv_func (SockInfo *sock,
|
||||
static gboolean inc_pop3_recv_func (SockInfo *sock,
|
||||
gint count,
|
||||
gint read_bytes,
|
||||
gpointer data);
|
||||
|
@ -753,8 +753,8 @@ static void inc_write_uidl_list(Pop3State *state)
|
|||
g_free(path);
|
||||
}
|
||||
|
||||
static void inc_pop3_recv_func(SockInfo *sock, gint count, gint read_bytes,
|
||||
gpointer data)
|
||||
static gboolean inc_pop3_recv_func(SockInfo *sock, gint count, gint read_bytes,
|
||||
gpointer data)
|
||||
{
|
||||
gchar buf[MSGBUFSIZE];
|
||||
IncSession *session = (IncSession *)data;
|
||||
|
@ -768,7 +768,8 @@ static void inc_pop3_recv_func(SockInfo *sock, gint count, gint read_bytes,
|
|||
if (cur_total > state->total_bytes)
|
||||
cur_total = state->total_bytes;
|
||||
|
||||
Xstrdup_a(total_size, to_human_readable(state->total_bytes), return);
|
||||
Xstrdup_a(total_size, to_human_readable(state->total_bytes),
|
||||
return FALSE);
|
||||
g_snprintf(buf, sizeof(buf),
|
||||
_("Retrieving message (%d / %d) (%s / %s)"),
|
||||
state->cur_msg, state->count,
|
||||
|
@ -781,6 +782,11 @@ static void inc_pop3_recv_func(SockInfo *sock, gint count, gint read_bytes,
|
|||
(GTK_PROGRESS_BAR(inc_dialog->mainwin->progressbar),
|
||||
(gfloat)cur_total / (gfloat)state->total_bytes);
|
||||
GTK_EVENTS_FLUSH();
|
||||
|
||||
if (state->inc_state == INC_CANCEL)
|
||||
return FALSE;
|
||||
else
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void inc_progress_update(Pop3State *state, Pop3Phase phase)
|
||||
|
|
|
@ -170,10 +170,7 @@ static void input_dialog_create(void)
|
|||
GTK_SIGNAL_FUNC(delete_event), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(dialog);
|
||||
|
||||
gtk_widget_realize(dialog);
|
||||
|
||||
|
|
|
@ -766,10 +766,7 @@ MainWindow *main_window_create(SeparateType type)
|
|||
gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, FALSE);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "delete_event",
|
||||
GTK_SIGNAL_FUNC(main_window_close_cb), mainwin);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), mainwin);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -29,29 +29,58 @@ GtkWidget *focus_window;
|
|||
gint manage_window_focus_in(GtkWidget *widget, GdkEventFocus *event,
|
||||
gpointer data)
|
||||
{
|
||||
/* debug_print("Focus in event: window: %08x\n", (guint)widget); */
|
||||
/* debug_print("Focus in event: window: %p\n", widget); */
|
||||
|
||||
focus_window = widget;
|
||||
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gint manage_window_focus_out(GtkWidget *widget, GdkEventFocus *event,
|
||||
gpointer data)
|
||||
{
|
||||
/* debug_print("Focused window: %08x\n", (guint)focus_window); */
|
||||
/* debug_print("Focus out event: window: %08x\n", (guint)widget); */
|
||||
/* debug_print("Focused window: %p\n", focus_window); */
|
||||
/* debug_print("Focus out event: window: %p\n", widget); */
|
||||
|
||||
if (focus_window == widget)
|
||||
focus_window = NULL;
|
||||
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gint manage_window_unmap(GtkWidget *widget, GdkEventAny *event, gpointer data)
|
||||
{
|
||||
/* debug_print("unmap event: %p\n", widget); */
|
||||
|
||||
if (focus_window == widget)
|
||||
focus_window = NULL;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gint manage_window_delete(GtkWidget *widget, GdkEventAny *event,
|
||||
gpointer data)
|
||||
{
|
||||
/* debug_print("delete event: %p\n", widget); */
|
||||
|
||||
if (focus_window == widget)
|
||||
focus_window = NULL;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void manage_window_destroy(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
/* debug_print("destroy event: %p\n", widget); */
|
||||
|
||||
if (focus_window == widget)
|
||||
focus_window = NULL;
|
||||
}
|
||||
|
||||
void manage_window_set_transient(GtkWindow *window)
|
||||
{
|
||||
/* debug_print("window = %08x, focus_window = %08x\n",
|
||||
(guint)window, (guint)focus_window); */
|
||||
/* debug_print("manage_window_set_transient(): window = %p, focus_window = %p\n",
|
||||
window, focus_window); */
|
||||
|
||||
if (window && focus_window)
|
||||
gtk_window_set_transient_for(window, GTK_WINDOW(focus_window));
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -24,12 +24,32 @@
|
|||
#include <gtk/gtkwidget.h>
|
||||
#include <gtk/gtkwindow.h>
|
||||
|
||||
#define MANAGE_WINDOW_SIGNALS_CONNECT(window) \
|
||||
{ \
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event", \
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL); \
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event", \
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL); \
|
||||
gtk_signal_connect(GTK_OBJECT(window), "unmap_event", \
|
||||
GTK_SIGNAL_FUNC(manage_window_unmap), NULL); \
|
||||
gtk_signal_connect(GTK_OBJECT(window), "destroy", \
|
||||
GTK_SIGNAL_FUNC(manage_window_destroy), NULL); \
|
||||
}
|
||||
|
||||
gint manage_window_focus_in (GtkWidget *widget,
|
||||
GdkEventFocus *event,
|
||||
gpointer data);
|
||||
gint manage_window_focus_out (GtkWidget *widget,
|
||||
GdkEventFocus *event,
|
||||
gpointer data);
|
||||
gint manage_window_unmap (GtkWidget *widget,
|
||||
GdkEventAny *event,
|
||||
gpointer data);
|
||||
gint manage_window_delete (GtkWidget *widget,
|
||||
GdkEventAny *event,
|
||||
gpointer data);
|
||||
void manage_window_destroy (GtkWidget *widget,
|
||||
gpointer data);
|
||||
|
||||
void manage_window_set_transient (GtkWindow *window);
|
||||
|
||||
|
@ -37,5 +57,4 @@ extern GtkWidget *focus_window;
|
|||
|
||||
GtkWidget *manage_window_get_focus_window (void);
|
||||
|
||||
|
||||
#endif /* __MANAGE_WINDOW_H__ */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -93,10 +93,7 @@ static void message_search_create(MessageView *messageview)
|
|||
GTK_SIGNAL_FUNC(gtk_widget_hide_on_delete), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
|
||||
vbox1 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox1);
|
||||
|
|
|
@ -427,6 +427,8 @@ GSList *news_get_group_list(Folder *folder)
|
|||
statusbar_pop_all();
|
||||
if (recv_write_to_file(SESSION(session)->sock, filename) < 0) {
|
||||
log_warning(_("can't retrieve newsgroup list\n"));
|
||||
session_destroy(SESSION(session));
|
||||
REMOTE_FOLDER(folder)->session = NULL;
|
||||
g_free(filename);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -85,10 +85,7 @@ gpgmegtk_passphrase_mbox (const gchar *desc)
|
|||
GTK_SIGNAL_FUNC(passphrase_deleted), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(passphrase_key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
manage_window_set_transient(GTK_WINDOW(window));
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 8);
|
||||
|
|
|
@ -436,7 +436,8 @@ gint pop3_retr_recv(SockInfo *sock, gpointer data)
|
|||
|
||||
if ((ok = pop3_ok(sock, NULL)) == PS_SUCCESS) {
|
||||
if (recv_write_to_file(sock, (file = get_tmp_file())) < 0) {
|
||||
state->inc_state = INC_NOSPACE;
|
||||
if (state->inc_state == INC_SUCCESS)
|
||||
state->inc_state = INC_NOSPACE;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -618,10 +618,8 @@ static void prefs_account_create(void)
|
|||
GTK_SIGNAL_FUNC(prefs_account_deleted), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog.window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(prefs_account_key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog.window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog.window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(dialog.window);
|
||||
|
||||
gtk_signal_connect(GTK_OBJECT(dialog.ok_btn), "clicked",
|
||||
GTK_SIGNAL_FUNC(prefs_account_ok), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(dialog.apply_btn), "clicked",
|
||||
|
|
|
@ -269,10 +269,7 @@ static void prefs_actions_create(MainWindow *mainwin)
|
|||
GTK_SIGNAL_FUNC(prefs_actions_deleted), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(prefs_actions_key_pressed), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT (window);
|
||||
gtk_signal_connect (GTK_OBJECT(ok_btn), "clicked",
|
||||
GTK_SIGNAL_FUNC(prefs_actions_ok), mainwin);
|
||||
gtk_signal_connect (GTK_OBJECT(cancel_btn), "clicked",
|
||||
|
|
|
@ -901,10 +901,8 @@ static void prefs_common_create(void)
|
|||
GTK_SIGNAL_FUNC(prefs_common_deleted), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(dialog.window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(prefs_common_key_pressed), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(dialog.window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(dialog.window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(dialog.window);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT(dialog.ok_btn), "clicked",
|
||||
GTK_SIGNAL_FUNC(prefs_common_ok), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(dialog.apply_btn), "clicked",
|
||||
|
@ -3091,10 +3089,7 @@ static void prefs_quote_colors_dialog_create(void)
|
|||
gtk_box_pack_end(GTK_BOX(vbox), hbbox, FALSE, FALSE, 0);
|
||||
|
||||
gtk_widget_grab_default(ok_btn);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "delete_event",
|
||||
GTK_SIGNAL_FUNC(gtk_main_quit), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
|
@ -3414,10 +3409,7 @@ static void prefs_keybind_select(void)
|
|||
gtk_box_pack_end (GTK_BOX (hbox1), confirm_area, FALSE, FALSE, 0);
|
||||
gtk_widget_grab_default (ok_btn);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC (manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC (manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
|
||||
GTK_SIGNAL_FUNC (prefs_keybind_deleted), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT (window), "key_press_event",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -161,10 +161,7 @@ static void prefs_custom_header_create(void)
|
|||
gtk_widget_grab_default (ok_btn);
|
||||
|
||||
gtk_window_set_title (GTK_WINDOW(window), _("Custom header setting"));
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT (window);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "delete_event",
|
||||
GTK_SIGNAL_FUNC(prefs_custom_header_deleted),
|
||||
NULL);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -199,10 +199,7 @@ static void prefs_display_header_create(void)
|
|||
|
||||
gtk_window_set_title (GTK_WINDOW(window),
|
||||
_("Display header setting"));
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "delete_event",
|
||||
GTK_SIGNAL_FUNC(prefs_display_header_deleted),
|
||||
NULL);
|
||||
|
|
|
@ -220,10 +220,7 @@ static void prefs_filter_create(void)
|
|||
GTK_SIGNAL_FUNC(prefs_filter_deleted), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(prefs_filter_key_pressed), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT (window);
|
||||
gtk_signal_connect (GTK_OBJECT(ok_btn), "clicked",
|
||||
GTK_SIGNAL_FUNC(prefs_filter_ok), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(cancel_btn), "clicked",
|
||||
|
@ -573,12 +570,15 @@ void prefs_filter_rename_path(const gchar *old_path, const gchar *new_path)
|
|||
gchar *dest_path;
|
||||
gint oldpathlen;
|
||||
|
||||
g_return_if_fail(old_path != NULL);
|
||||
g_return_if_fail(new_path != NULL);
|
||||
|
||||
for (cur = prefs_common.fltlist; cur != NULL; cur = cur->next) {
|
||||
Filter *flt = (Filter *)cur->data;
|
||||
|
||||
oldpathlen = strlen(old_path);
|
||||
if (!strncmp(old_path, (gchar *)flt->dest, oldpathlen)) {
|
||||
base = (gchar *)flt->dest + oldpathlen;
|
||||
if (flt->dest && !strncmp(old_path, flt->dest, oldpathlen)) {
|
||||
base = flt->dest + oldpathlen;
|
||||
while (*base == G_DIR_SEPARATOR) base++;
|
||||
if (*base == '\0')
|
||||
dest_path = g_strdup(new_path);
|
||||
|
@ -598,14 +598,14 @@ void prefs_filter_delete_path(const gchar *path)
|
|||
{
|
||||
GSList *cur;
|
||||
GSList *next;
|
||||
gint len;
|
||||
|
||||
g_return_if_fail(path != NULL);
|
||||
|
||||
for (cur = prefs_common.fltlist; cur != NULL; cur = next) {
|
||||
Filter *flt = (Filter *)cur->data;
|
||||
next = cur->next;
|
||||
|
||||
len = strlen(path);
|
||||
if (!strncmp(path, flt->dest, len)) {
|
||||
if (flt->dest && !strncmp(path, flt->dest, strlen(path))) {
|
||||
filter_free(flt);
|
||||
prefs_common.fltlist =
|
||||
g_slist_remove(prefs_common.fltlist, flt);
|
||||
|
|
|
@ -342,10 +342,7 @@ static void prefs_filtering_create(void)
|
|||
GTK_SIGNAL_FUNC(prefs_filtering_deleted), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(prefs_filtering_key_pressed), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT (window);
|
||||
gtk_signal_connect (GTK_OBJECT(ok_btn), "clicked",
|
||||
GTK_SIGNAL_FUNC(prefs_filtering_ok), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(cancel_btn), "clicked",
|
||||
|
|
|
@ -297,10 +297,7 @@ void prefs_folder_item_create(void *folderview, FolderItem *item)
|
|||
gtk_window_set_policy (GTK_WINDOW (window), FALSE, TRUE, FALSE);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "delete_event",
|
||||
GTK_SIGNAL_FUNC(prefs_folder_item_delete_cb), dialog);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT (window);
|
||||
|
||||
/* Table */
|
||||
table = gtk_table_new(4, 2, FALSE);
|
||||
|
|
|
@ -309,10 +309,7 @@ static void prefs_matcher_create(void)
|
|||
GTK_SIGNAL_FUNC(prefs_matcher_deleted), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(prefs_matcher_key_pressed), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT (window);
|
||||
gtk_signal_connect (GTK_OBJECT(ok_btn), "clicked",
|
||||
GTK_SIGNAL_FUNC(prefs_matcher_ok), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(cancel_btn), "clicked",
|
||||
|
|
|
@ -205,10 +205,7 @@ static void prefs_scoring_create(void)
|
|||
GTK_SIGNAL_FUNC(prefs_scoring_deleted), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(prefs_scoring_key_pressed), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT (window);
|
||||
gtk_signal_connect (GTK_OBJECT(ok_btn), "clicked",
|
||||
GTK_SIGNAL_FUNC(prefs_scoring_ok), NULL);
|
||||
gtk_signal_connect (GTK_OBJECT(cancel_btn), "clicked",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Sylpheed templates subsystem
|
||||
* Copyright (C) 2001 Alexander Barinov
|
||||
* Copyright (C) 2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 2001-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -266,10 +266,7 @@ static void prefs_template_window_create(void)
|
|||
GTK_SIGNAL_FUNC(prefs_template_deleted_cb), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(prefs_template_key_pressed_cb), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
gtk_signal_connect(GTK_OBJECT(ok_btn), "clicked",
|
||||
GTK_SIGNAL_FUNC(prefs_template_ok_cb), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(cancel_btn), "clicked",
|
||||
|
|
|
@ -129,8 +129,10 @@ gint recv_write(SockInfo *sock, FILE *fp)
|
|||
than 50msec, update UI */
|
||||
if (tv_cur.tv_sec - tv_prev.tv_sec > 0 ||
|
||||
tv_cur.tv_usec - tv_prev.tv_usec > UI_REFRESH_INTERVAL) {
|
||||
recv_ui_func(sock, count, bytes,
|
||||
recv_ui_func_data);
|
||||
gboolean ret;
|
||||
ret = recv_ui_func(sock, count, bytes,
|
||||
recv_ui_func_data);
|
||||
if (ret == FALSE) return -1;
|
||||
gettimeofday(&tv_prev, NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "socket.h"
|
||||
|
||||
typedef void (*RecvUIFunc) (SockInfo *sock,
|
||||
typedef gboolean (*RecvUIFunc) (SockInfo *sock,
|
||||
gint count,
|
||||
gint read_bytes,
|
||||
gpointer data);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
|
||||
* Copyright (C) 1999-2001 Hiroyuki Yamamoto
|
||||
* Copyright (C) 1999-2002 Hiroyuki Yamamoto
|
||||
*
|
||||
* 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
|
||||
|
@ -103,10 +103,7 @@ static void summary_search_create(SummaryView *summaryview)
|
|||
GTK_SIGNAL_FUNC(gtk_widget_hide_on_delete), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "key_press_event",
|
||||
GTK_SIGNAL_FUNC(key_pressed), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_in_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_in), NULL);
|
||||
gtk_signal_connect(GTK_OBJECT(window), "focus_out_event",
|
||||
GTK_SIGNAL_FUNC(manage_window_focus_out), NULL);
|
||||
MANAGE_WINDOW_SIGNALS_CONNECT(window);
|
||||
|
||||
vbox1 = gtk_vbox_new (FALSE, 0);
|
||||
gtk_widget_show (vbox1);
|
||||
|
|
|
@ -68,7 +68,6 @@
|
|||
#include "gtkutils.h"
|
||||
#include "stock_pixmap.h"
|
||||
#include "filesel.h"
|
||||
#include "manage_window.h"
|
||||
#include "alertpanel.h"
|
||||
#include "inputdialog.h"
|
||||
#include "statusbar.h"
|
||||
|
|
Loading…
Reference in a new issue