[gtk+] Trivial: Use a convenience macro
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Trivial: Use a convenience macro
- Date: Sat, 30 May 2015 13:45:24 +0000 (UTC)
commit 833dbd65cd582346aa52e7dbb122e0e709cd3b7b
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 30 09:36:51 2015 -0400
Trivial: Use a convenience macro
g_strstrip is less obscure than the two individual functions,
so lets use it here.
gtk/gtkprintbackend.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index 3dc4037..cda9376 100644
--- a/gtk/gtkprintbackend.c
+++ b/gtk/gtkprintbackend.c
@@ -325,10 +325,7 @@ gtk_print_backend_load_modules (void)
for (i = 0; backends[i]; i++)
{
- g_strchug (backends[i]);
- g_strchomp (backends[i]);
- backend = _gtk_print_backend_create (backends[i]);
-
+ backend = _gtk_print_backend_create (g_strstrip (backends[i]));
if (backend)
result = g_list_append (result, backend);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]