[gedit/wip/gedit-next] utils: turn a debug message into a warning



commit 6c5493b6133fe6edd37b6d23a81a1c3821c14819
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Mar 27 15:56:16 2016 +0200

    utils: turn a debug message into a warning
    
    When a DND doesn't work as expected, it's better to always show a
    warning.
    
    And now gedit-utils.c doesn't depend on gedit-debug anymore.

 gedit/gedit-utils.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-utils.c b/gedit/gedit-utils.c
index 37e886b..d8997e9 100644
--- a/gedit/gedit-utils.c
+++ b/gedit/gedit-utils.c
@@ -31,8 +31,6 @@
 #include <X11/Xatom.h>
 #endif
 
-#include "gedit-debug.h"
-
 static void
 widget_get_origin (GtkWidget *widget,
                   gint      *x,
@@ -1120,7 +1118,7 @@ get_direct_save_filename (GdkDragContext *context)
        /* Verify that the file name provided by the source is valid */
        if (*prop_text == '\0' ||
            strchr ((const gchar *) prop_text, G_DIR_SEPARATOR) != NULL) {
-               gedit_debug_message (DEBUG_UTILS, "Invalid filename provided by XDS drag site");
+               g_warning ("Invalid filename provided by XDS drag site");
                g_free (prop_text);
                return NULL;
        }


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