From 52a91abbe7d87d0ecddb9e9d89b1232a490144b1 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 17 Oct 2005 08:26:23 +0000 Subject: adjusted the minimum input dialog size. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@656 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 4 ++++ ChangeLog.ja | 4 ++++ src/inputdialog.c | 5 +++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 28ab0d72..57e25375 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-10-17 + + * src/inputdialog.c: adjusted the minimum dialog size. + 2005-10-17 * libsylph/prefs_common.c: win32: fixed compilation failure. diff --git a/ChangeLog.ja b/ChangeLog.ja index 32fd81e0..b15ebedb 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,7 @@ +2005-10-17 + + * src/inputdialog.c: 最小ダイアログサイズを調整。 + 2005-10-17 * libsylph/prefs_common.c: win32: コンパイルに失敗するのを修正。 diff --git a/src/inputdialog.c b/src/inputdialog.c index ac1b6daa..191029e5 100644 --- a/src/inputdialog.c +++ b/src/inputdialog.c @@ -45,7 +45,7 @@ #include "gtkutils.h" #include "utils.h" -#define INPUT_DIALOG_WIDTH 420 +#define INPUT_ENTRY_WIDTH 400 typedef enum { @@ -169,7 +169,6 @@ static void input_dialog_create(void) dialog = gtk_dialog_new(); gtk_window_set_resizable(GTK_WINDOW(dialog), FALSE); - gtk_window_set_default_size(GTK_WINDOW(dialog), INPUT_DIALOG_WIDTH, -1); gtk_container_set_border_width (GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 5); gtk_window_set_position(GTK_WINDOW(dialog), GTK_WIN_POS_CENTER); @@ -194,11 +193,13 @@ static void input_dialog_create(void) entry = gtk_entry_new(); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); + gtk_widget_set_size_request(entry, INPUT_ENTRY_WIDTH, -1); g_signal_connect(G_OBJECT(entry), "activate", G_CALLBACK(entry_activated), NULL); combo = gtk_combo_new(); gtk_box_pack_start(GTK_BOX(vbox), combo, FALSE, FALSE, 0); + gtk_widget_set_size_request(combo, INPUT_ENTRY_WIDTH, -1); g_signal_connect(G_OBJECT(GTK_COMBO(combo)->entry), "activate", G_CALLBACK(combo_activated), NULL); -- cgit v1.2.3