[gnome-commander/gcmd-1-2-8] search: simplify code for dlg buttons
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] search: simplify code for dlg buttons
- Date: Sun, 27 Mar 2011 16:47:00 +0000 (UTC)
commit 7d985c28316239acf40e4d091eacdd8b1cc8510b
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Mar 27 18:46:04 2011 +0200
search: simplify code for dlg buttons
src/gnome-cmd-search-dialog.cc | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index f00406a..42c9c72 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -532,9 +532,6 @@ static gboolean start_search (GnomeCmdSearchDialog *dialog)
dialog->priv->result_list->remove_all_files();
- gtk_widget_set_sensitive (data->dialog->priv->search_button, FALSE);
- gtk_widget_set_sensitive (data->dialog->priv->stop_button, TRUE);
-
// create an re for file name matching
GtkWidget *regex_radio = lookup_widget (GTK_WIDGET (dialog), "regex_radio");
@@ -580,8 +577,9 @@ static void on_search (GtkButton *button, GnomeCmdSearchDialog *dialog)
{
g_timeout_add (1, (GSourceFunc) start_search, dialog);
- gtk_widget_set_sensitive (dialog->priv->search_button, FALSE);
gtk_widget_set_sensitive (dialog->priv->goto_button, FALSE);
+ gtk_widget_set_sensitive (dialog->priv->stop_button, TRUE);
+ gtk_widget_set_sensitive (dialog->priv->search_button, FALSE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]