[easytag/easytag-2-2] Fix menu actions for tag field case conversion
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/easytag-2-2] Fix menu actions for tag field case conversion
- Date: Sat, 6 Dec 2014 19:21:40 +0000 (UTC)
commit 673013a878ee052f53d8dde4e751ebcf0e86878e
Author: David King <amigadave amigadave com>
Date: Sat Dec 6 19:19:12 2014 +0000
Fix menu actions for tag field case conversion
https://bugzilla.gnome.org/show_bug.cgi?id=741203
src/easytag.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index bb8c069..53682d0 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -4367,11 +4367,12 @@ Convert_Space_Into_Underscore (GtkWidget *entry)
static void
Convert_All_Uppercase (GtkWidget *entry)
{
- gchar *string = g_strdup(gtk_entry_get_text(GTK_ENTRY(entry)));
+ gchar *res;
+ const gchar *string = gtk_entry_get_text (GTK_ENTRY (entry));
- Scan_Process_Fields_All_Uppercase(string);
- gtk_entry_set_text(GTK_ENTRY(entry),string);
- g_free(string);
+ res = Scan_Process_Fields_All_Uppercase (string);
+ gtk_entry_set_text (GTK_ENTRY (entry), res);
+ g_free (res);
}
static void
@@ -4380,7 +4381,7 @@ Convert_All_Lowercase (GtkWidget *entry)
gchar *res;
const gchar *string = gtk_entry_get_text (GTK_ENTRY (entry));
- res = Scan_Process_Fields_All_Uppercase (string);
+ res = Scan_Process_Fields_All_Downcase (string);
gtk_entry_set_text (GTK_ENTRY (entry), res);
g_free (res);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]