[gnome-commander] search: save chosen filter type when closing dlg
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] search: save chosen filter type when closing dlg
- Date: Tue, 3 May 2011 21:18:55 +0000 (UTC)
commit 70abd7c7f23a3350ca4f0f911dd2840377915831
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Tue May 3 23:18:36 2011 +0200
search: save chosen filter type when closing dlg
src/gnome-cmd-search-dialog.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index 29173d8..f69cf88 100755
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -717,6 +717,8 @@ static void gnome_cmd_search_dialog_finalize (GObject *object)
gnome_cmd_data.search_defaults.width = allocation.width;
gnome_cmd_data.search_defaults.height = allocation.height;
+ gnome_cmd_data.filter_type = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (lookup_widget (GTK_WIDGET (dialog), "regex_radio"))) ? Filter::TYPE_REGEX : Filter::TYPE_FNMATCH;
+
g_free (dialog->priv);
G_OBJECT_CLASS (gnome_cmd_search_dialog_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]