gtk-demo: Strip newlines from g_warning and g_error

g_logv adds one for us already.
This commit is contained in:
Matthias Clasen
2016-02-28 12:18:36 -05:00
parent bbd94b5a9f
commit 435c8c9f0d
4 changed files with 6 additions and 6 deletions

View File

@ -77,7 +77,7 @@ create_shader (int type,
buffer = g_malloc (log_len + 1);
glGetShaderInfoLog (shader, log_len, NULL, buffer);
g_warning ("Compile failure in %s shader:\n%s\n",
g_warning ("Compile failure in %s shader:\n%s",
type == GL_VERTEX_SHADER ? "vertex" : "fragment",
buffer);
@ -140,7 +140,7 @@ init_shaders (GLuint *program_out,
buffer = g_malloc (log_len + 1);
glGetProgramInfoLog (program, log_len, NULL, buffer);
g_warning ("Linking failure:\n%s\n", buffer);
g_warning ("Linking failure:\n%s", buffer);
g_free (buffer);

View File

@ -587,7 +587,7 @@ add_data_tab (const gchar *demoname)
}
else
{
g_warning ("Don't know how to display resource '%s'\n", resource_name);
g_warning ("Don't know how to display resource '%s'", resource_name);
widget = NULL;
}
@ -657,7 +657,7 @@ load_file (const gchar *demoname,
if (bytes == NULL)
{
g_warning ("Cannot open source for %s: %s\n", filename, err->message);
g_warning ("Cannot open source for %s: %s", filename, err->message);
g_error_free (err);
return;
}

View File

@ -328,7 +328,7 @@ gtk_rotated_bin_add (GtkContainer *container,
bin->child = widget;
}
else
g_warning ("GtkRotatedBin cannot have more than one child\n");
g_warning ("GtkRotatedBin cannot have more than one child");
}
static void

View File

@ -267,7 +267,7 @@ gtk_mirror_bin_add (GtkContainer *container,
bin->child = widget;
}
else
g_warning ("GtkMirrorBin cannot have more than one child\n");
g_warning ("GtkMirrorBin cannot have more than one child");
}
static void