[gnome-commander] fix for bug introduced in commit d6f6d04d857955bfda27f672e4a908f9ecd955e8 (Use G_DEFINE_TYPE for Gno
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] fix for bug introduced in commit d6f6d04d857955bfda27f672e4a908f9ecd955e8 (Use G_DEFINE_TYPE for Gno
- Date: Sat, 7 May 2011 07:38:26 +0000 (UTC)
commit a85cb2ebb4b1d50e6df5930f3e11d9624c1c5925
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sat May 7 09:33:48 2011 +0200
fix for bug introduced in commit d6f6d04d857955bfda27f672e4a908f9ecd955e8 (Use G_DEFINE_TYPE for GnomeCmdPatternselDialog)
src/gnome-cmd-patternsel-dialog.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-patternsel-dialog.cc b/src/gnome-cmd-patternsel-dialog.cc
index 49871e0..1da8528 100644
--- a/src/gnome-cmd-patternsel-dialog.cc
+++ b/src/gnome-cmd-patternsel-dialog.cc
@@ -48,8 +48,10 @@ static void on_ok (GtkButton *button, GnomeCmdPatternselDialog *dialog)
{
g_return_if_fail (GNOME_CMD_IS_PATTERNSEL_DIALOG (dialog));
- const gchar *s = gtk_entry_get_text (GTK_ENTRY (dialog->priv->pattern_entry));
gboolean case_sens = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->priv->case_check));
+ 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;
+
+ const gchar *s = gtk_entry_get_text (GTK_ENTRY (dialog->priv->pattern_entry));
if (dialog->priv->mode)
dialog->priv->fl->select_pattern(s, case_sens);
@@ -76,8 +78,6 @@ static void gnome_cmd_patternsel_dialog_finalize (GObject *object)
{
GnomeCmdPatternselDialog *dialog = GNOME_CMD_PATTERNSEL_DIALOG (object);
- gnome_cmd_data.filter_type = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (lookup_widget (GTK_WIDGET (object), "regex_radio"))) ? Filter::TYPE_REGEX : Filter::TYPE_FNMATCH;
-
g_free (dialog->priv);
G_OBJECT_CLASS (gnome_cmd_patternsel_dialog_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]