[gnome-commander/ConvertWarningsToErrors] noop: Tabs to spaces
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] noop: Tabs to spaces
- Date: Sun, 16 Apr 2017 10:00:16 +0000 (UTC)
commit 4bfe918e60c7ded69f2894af71deb4ca3918b80e
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sun Apr 16 12:00:01 2017 +0200
noop: Tabs to spaces
src/dialogs/gnome-cmd-search-dialog.cc | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index 9d4755b..4b1ded7 100644
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -534,20 +534,19 @@ 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);
-
+ gtk_dialog_set_default_response (*data->dialog, GnomeCmdSearchDialog::GCMD_RESPONSE_FIND);
+
if (matches)
- {
- GnomeCmdFileList *fl = data->dialog->priv->result_list;
- gtk_widget_grab_focus (*fl); // set focus to result list
- // select one file, as matches is non-zero, there should be at least one entry
- if (!fl->get_focused_file())
- {
- fl->select_row(0);
- }
- }
+ {
+ GnomeCmdFileList *fl = data->dialog->priv->result_list;
+ gtk_widget_grab_focus (*fl); // set focus to result list
+ // select one file, as matches is non-zero, there should be at least one entry
+ if (!fl->get_focused_file())
+ {
+ fl->select_row(0);
+ }
+ }
}
-
return FALSE; // returning FALSE here stops the timeout callbacks
}
@@ -900,7 +899,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);
+ gtk_dialog_set_default_response (*dialog, GCMD_RESPONSE_FIND);
}
break;
@@ -986,7 +985,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);
+ gtk_dialog_set_default_response (*dialog, GCMD_RESPONSE_STOP);
}
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]