[gnome-commander/gcmd-1-4] Set default response to find, fixes bgo#748869
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-4] Set default response to find, fixes bgo#748869
- Date: Sat, 9 May 2015 17:38:03 +0000 (UTC)
commit 7027839f724304afc27528ed35302f838db5b985
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date: Sat May 9 19:24:27 2015 +0200
Set default response to find, fixes bgo#748869
Signed-off-by: Uwe Scholz <uwescholz src gnome org>
NEWS | 1 +
doc/C/releases.xml | 3 +++
src/dialogs/gnome-cmd-search-dialog.cc | 1 +
3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 6a0fdf2..f9b670c 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ gnome-commander 1.4.6
Bug fixes:
* Fixed problem bgo#747771 (appdata.xml file is not being translated, thanks to Dominique Leuenberger)
+ * Fixed problem bgo#748869 (crash when searching two times consecutively)
===================================
gnome-commander 1.4.5
diff --git a/doc/C/releases.xml b/doc/C/releases.xml
index 5fba45e..3d4891a 100644
--- a/doc/C/releases.xml
+++ b/doc/C/releases.xml
@@ -30,6 +30,9 @@
<para>
<itemizedlist>
<listitem>
+ <para>Fixed problem bgo#748869 (crash when searching two times
consecutively)</para>
+ </listitem>
+ <listitem>
<para>Fixed problem bgo#747771 (appdata.xml file is not being translated, thanks
to Dominique Leuenberger)</para>
</listitem>
</itemizedlist>
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index 2d9830e..3c8407e 100644
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -532,6 +532,7 @@ static gboolean update_search_status_widgets (SearchData *data)
gtk_dialog_set_response_sensitive (*data->dialog, GnomeCmdSearchDialog::GCMD_RESPONSE_GOTO,
matches>0);
gtk_dialog_set_response_sensitive (*data->dialog, GnomeCmdSearchDialog::GCMD_RESPONSE_STOP, FALSE);
gtk_dialog_set_response_sensitive (*data->dialog, GnomeCmdSearchDialog::GCMD_RESPONSE_FIND, TRUE);
+ gtk_dialog_set_default_response (*data->dialog, GnomeCmdSearchDialog::GCMD_RESPONSE_FIND);
if (matches)
gtk_widget_grab_focus (*data->dialog->priv->result_list); // set focus to result list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]