[dia] drop unneeded \n from debug messages



commit e036f698cdac18054f7c7fb9914eafd41f63fea4
Author: Zander Brown <zbrown gnome org>
Date:   Fri Jul 5 22:27:03 2019 +0100

    drop unneeded \n from debug messages

 app/object_ops.c  | 14 +++++++-------
 lib/prop_pixbuf.c |  2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/app/object_ops.c b/app/object_ops.c
index 952eb83c..f6c203e5 100644
--- a/app/object_ops.c
+++ b/app/object_ops.c
@@ -559,7 +559,7 @@ object_list_align_connected (GList *objects, Diagram *dia, int align)
 
   /* find all elements to be moved directly */
   filter_connected (objects, 2, &connected, &to_be_moved);
-  dia_log_message ("Moves %d - Connections %d\n", g_list_length (to_be_moved), g_list_length (connected));
+  dia_log_message ("Moves %d - Connections %d", g_list_length (to_be_moved), g_list_length (connected));
   /* for every connection check:
    * - "matching" directions of both object connection points (this also gives
    *    the direction of the move of the second object)
@@ -638,15 +638,15 @@ object_list_align_connected (GList *objects, Diagram *dia, int align)
           orig_pos[i] = o2->position;
           dest_pos[i] = pos;
 
-          dia_log_message ("Move '%s' by %g,%g\n", o2->type->name, delta.x, delta.y);
+          dia_log_message ("Move '%s' by %g,%g", o2->type->name, delta.x, delta.y);
 #if 0
           o2->ops->move (o2, &pos);
 #else
-         {
-           GList *move_list = g_list_append (NULL, o2);
-           object_list_move_delta (move_list, &delta);
-           g_list_free (move_list);
-         }
+          {
+            GList *move_list = g_list_append (NULL, o2);
+            object_list_move_delta (move_list, &delta);
+            g_list_free (move_list);
+          }
 #endif
           diagram_update_connections_object (dia, o2, TRUE);
           movelist = g_list_append (movelist, o2);
diff --git a/lib/prop_pixbuf.c b/lib/prop_pixbuf.c
index 47487e55..a7591615 100644
--- a/lib/prop_pixbuf.c
+++ b/lib/prop_pixbuf.c
@@ -98,7 +98,7 @@ pixbuf_decode_base64 (const gchar *b64)
       gchar  *format_name = gdk_pixbuf_format_get_name (format);
       gchar **mime_types = gdk_pixbuf_format_get_mime_types (format);
 
-      dia_log_message ("Loaded pixbuf from '%s' with '%s'\n", format_name, mime_types[0]);
+      dia_log_message ("Loaded pixbuf from '%s' with '%s'", format_name, mime_types[0]);
       pixbuf = g_object_ref (gdk_pixbuf_loader_get_pixbuf (loader));
       /* attach the mime-type to the pixbuf */
       g_object_set_data_full (G_OBJECT (pixbuf), "mime-type",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]