aboutsummaryrefslogtreecommitdiff
path: root/src/inputdialog.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-12-17 07:44:06 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-12-17 07:44:06 +0000
commit7ac11e0103ee0ad8722bde30522895a9e6c2e712 (patch)
tree02b7cf633c4d952c0bfc5c34a15cb0ab4ad3d92c /src/inputdialog.c
parent1aaf8ce241d8700c4645e3090cfeccd4b20eee28 (diff)
fixed focus problem.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2400 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/inputdialog.c')
-rw-r--r--src/inputdialog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inputdialog.c b/src/inputdialog.c
index b967b805..37bfd76d 100644
--- a/src/inputdialog.c
+++ b/src/inputdialog.c
@@ -364,6 +364,8 @@ static void sel_btn_clicked(GtkButton *button, gpointer data)
gchar *file;
gchar *utf8_file;
+ g_signal_handlers_block_by_func(dialog, focus_out, NULL);
+
if (chooser_action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
file = filesel_select_dir(NULL);
else
@@ -374,6 +376,8 @@ static void sel_btn_clicked(GtkButton *button, gpointer data)
gtk_entry_set_text(GTK_ENTRY(entry), utf8_file);
g_free(utf8_file);
}
+
+ g_signal_handlers_unblock_by_func(dialog, focus_out, NULL);
}
static gint focus_out(GtkWidget *widget, GdkEventFocus *event, gpointer data)