diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-10 09:40:20 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-10 09:40:20 +0000 |
commit | 71127ec69c46e0f4b0d02b382f09b1228a7dc63f (patch) | |
tree | a4a928687bc69521bb2fdd9333784fca44e70110 | |
parent | 12a4b898947c48863b41a29b5005fc0bc8d989d1 (diff) |
fixed size of separate window.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@161 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.ja | 7 | ||||
-rw-r--r-- | src/mainwindow.c | 20 | ||||
-rw-r--r-- | src/utils.c | 2 |
4 files changed, 25 insertions, 11 deletions
@@ -1,5 +1,12 @@ 2005-03-10 + * src/mainwindow.c: main_window_set_widgets(): request size first + to prevent window size becoming wrong. + * src/utils.c: debug_print(): use g_print() to output with locale + encoding. + +2005-03-10 + * src/passphrase.c: partially fixed grab input of passphrase dialog. Confine pointer to window. diff --git a/ChangeLog.ja b/ChangeLog.ja index 237c937f..71224e0b 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,12 @@ 2005-03-10 + * src/mainwindow.c: main_window_set_widgets(): ウィンドウサイズが + 不正になるのを防ぐため、最初にサイズを要求するようにした。 + * src/utils.c: debug_print(): locale エンコーディングで出力するために + g_print() を使用。 + +2005-03-10 + * src/passphrase.c: パスフレーズダイアログの入力捕捉を部分的に修正。 ポインタをウィンドウ内に制限するようにした。 diff --git a/src/mainwindow.c b/src/mainwindow.c index db8b7086..c948edf6 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -1895,6 +1895,16 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type) debug_print("Setting widgets... "); + gtk_widget_set_size_request(GTK_WIDGET_PTR(mainwin->folderview), + prefs_common.folderview_width, + prefs_common.folderview_height); + gtk_widget_set_size_request(GTK_WIDGET_PTR(mainwin->summaryview), + prefs_common.summaryview_width, + prefs_common.summaryview_height); + gtk_widget_set_size_request(GTK_WIDGET_PTR(mainwin->messageview), + prefs_common.msgview_width, + prefs_common.msgview_height); + /* create separated window(s) if needed */ if (type & SEPARATE_FOLDER) { folderwin = gtk_window_new(GTK_WINDOW_TOPLEVEL); @@ -1937,16 +1947,6 @@ static void main_window_set_widgets(MainWindow *mainwin, SeparateType type) gtk_widget_show(messagewin); } - gtk_widget_set_size_request(GTK_WIDGET_PTR(mainwin->folderview), - prefs_common.folderview_width, - prefs_common.folderview_height); - gtk_widget_set_size_request(GTK_WIDGET_PTR(mainwin->summaryview), - prefs_common.summaryview_width, - prefs_common.summaryview_height); - gtk_widget_set_size_request(GTK_WIDGET_PTR(mainwin->messageview), - prefs_common.msgview_width, - prefs_common.msgview_height); - switch (type) { case SEPARATE_NONE: hpaned = gtk_hpaned_new(); diff --git a/src/utils.c b/src/utils.c index 74ba6100..de2324f6 100644 --- a/src/utils.c +++ b/src/utils.c @@ -3149,7 +3149,7 @@ void debug_print(const gchar *format, ...) g_vsnprintf(buf, sizeof(buf), format, args); va_end(args); - fputs(buf, stdout); + g_print("%s", buf); } #define TIME_LEN 11 |