summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-05-30 09:36:51 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-05-30 09:36:51 -0400
commit833dbd65cd582346aa52e7dbb122e0e709cd3b7b (patch)
tree35896421bb865b287aa9a6c4c6fd9982a857e061
parent4c971c6f5eef9693a8c6a6d12a798901c9689f96 (diff)
downloadgtk+-833dbd65cd582346aa52e7dbb122e0e709cd3b7b.tar.gz
Trivial: Use a convenience macro
g_strstrip is less obscure than the two individual functions, so lets use it here.
-rw-r--r--gtk/gtkprintbackend.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index 3dc40379ef..cda9376007 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);
}