[glade/glade-3-36] Gtk plugin / GladeDataModel: ignore non printable chars
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-36] Gtk plugin / GladeDataModel: ignore non printable chars
- Date: Thu, 9 Jul 2020 20:52:25 +0000 (UTC)
commit ffa9c2fef824f36107be5c59c3d5719722aab171
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Thu Jul 9 17:51:21 2020 -0300
Gtk plugin / GladeDataModel: ignore non printable chars
Do not commit non printable characters for gchar and guchar column types.
plugins/gtk+/glade-model-data.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/plugins/gtk+/glade-model-data.c b/plugins/gtk+/glade-model-data.c
index 26f66758..3296dad6 100644
--- a/plugins/gtk+/glade-model-data.c
+++ b/plugins/gtk+/glade-model-data.c
@@ -733,6 +733,9 @@ value_text_edited (GtkCellRendererText *cell,
else
val = *new_text;
+ if (!g_ascii_isprint (val))
+ return;
+
value = g_new0 (GValue, 1);
g_value_init (value, G_VALUE_TYPE (&data->value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]