[gnome-commander/gcmd-1-4] Set default button to Stop while searching
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-4] Set default button to Stop while searching
- Date: Sun, 6 Apr 2014 18:56:26 +0000 (UTC)
commit 5ed58ec889c285a2b554acdbd9e16578b564a367
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sun Apr 6 18:46:15 2014 +0200
Set default button to Stop while searching
This prevents GCMD from crashing after hitting Enter two times in the
search dialog.
src/dialogs/gnome-cmd-search-dialog.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index 899c71d..7921237 100644
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -888,6 +888,7 @@ void GnomeCmdSearchDialog::Private::on_dialog_response(GtkDialog *window, int re
{
dialog->priv->data.stopped = TRUE;
gtk_dialog_set_response_sensitive (*dialog, GCMD_RESPONSE_STOP, FALSE);
+ gtk_dialog_set_default_response (*dialog, GCMD_RESPONSE_FIND);
}
break;
@@ -970,6 +971,7 @@ void GnomeCmdSearchDialog::Private::on_dialog_response(GtkDialog *window, int re
gtk_dialog_set_response_sensitive (*dialog, GCMD_RESPONSE_GOTO, FALSE);
gtk_dialog_set_response_sensitive (*dialog, GCMD_RESPONSE_STOP, TRUE);
gtk_dialog_set_response_sensitive (*dialog, GCMD_RESPONSE_FIND, FALSE);
+ gtk_dialog_set_default_response (*dialog, GCMD_RESPONSE_STOP);
}
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]