[gnome-commander/gcmd-1-3] advrename profiles: set default template string to "$N"
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-commander/gcmd-1-3] advrename profiles: set default template string to "$N"
- Date: Fri, 22 May 2009 11:08:04 -0400 (EDT)
commit 3fa66884f48347690e06084faf98049c6d84a723
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri May 22 17:04:18 2009 +0200
advrename profiles: set default template string to "$N"
---
ChangeLog | 7 +++++++
src/gnome-cmd-advrename-dialog.cc | 2 --
src/gnome-cmd-data.cc | 2 +-
src/gnome-cmd-data.h | 5 +++--
4 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e704f30..44dc85d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-05-22 Piotr Eljasiak <epiotr use pl>
+
+ * src/gnome-cmd-advrename-dialog.cc:
+ * src/gnome-cmd-data.cc:
+ * src/gnome-cmd-data.h:
+ advrename profiles: set default template string to "$N"
+
2009-05-19 Piotr Eljasiak <epiotr use pl>
* src/gnome-cmd-advrename-dialog.cc:
diff --git a/src/gnome-cmd-advrename-dialog.cc b/src/gnome-cmd-advrename-dialog.cc
index bdf019d..5313c4e 100644
--- a/src/gnome-cmd-advrename-dialog.cc
+++ b/src/gnome-cmd-advrename-dialog.cc
@@ -466,9 +466,7 @@ void GnomeCmdAdvrenameDialog::Private::on_dialog_response (GnomeCmdAdvrenameDial
case GCMD_RESPONSE_RESET:
dialog->defaults.default_profile.reset();
- dialog->defaults.default_profile.template_string = "$N";
dialog->priv->profile_component->update();
-
break;
default :
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index d093e73..4997035 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -79,7 +79,7 @@ DICT<guint> gdk_modifiers_names;
void GnomeCmdData::AdvrenameConfig::Profile::reset()
{
name.clear();
- template_string.clear();
+ template_string = "$N";
regexes.clear();
counter_start = counter_width = counter_step = 1;
case_conversion = 0;
diff --git a/src/gnome-cmd-data.h b/src/gnome-cmd-data.h
index 75d9a16..5b0f1da 100644
--- a/src/gnome-cmd-data.h
+++ b/src/gnome-cmd-data.h
@@ -83,8 +83,9 @@ struct GnomeCmdData
void reset();
- Profile(): counter_start(1), counter_width(1), counter_step(1),
- case_conversion(0), trim_blanks(3) {}
+ Profile(): template_string("$N"),
+ counter_start(1), counter_width(1), counter_step(1),
+ case_conversion(0), trim_blanks(3) {}
};
gint width, height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]