[gnumeric] Fix document properties types. [#367]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fix document properties types. [#367]
- Date: Sun, 18 Nov 2018 08:12:12 +0000 (UTC)
commit 0a51da18ba52d752aa85c07e6afd0ba1565e12b7
Author: Jean Brefort <jean brefort normalesup org>
Date: Sun Nov 18 09:11:48 2018 +0100
Fix document properties types. [#367]
NEWS | 3 +++
src/dialogs/ChangeLog | 5 +++++
src/dialogs/dialog-doc-metadata.c | 3 ++-
3 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index 4162fa6f0..9067c2177 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
Gnumeric 1.12.44
+Jean:
+ * Fix document properties types. [#367]
+
Morten:
* Fix SWITCH's default argument. [#354]
* Fix problem with setting auto-func. [#357]
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index afb67b8a9..dcd9ae108 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2018-11-18 Jean Brefort <jean brefort normalesup org>
+
+ * dialog-doc-metadata.c (cb_dialog_doc_metadata_add_clicked): fix data type.
+ [#367]
+
2018-08-19 Morten Welinder <terra gnome org>
* Release 1.12.43
diff --git a/src/dialogs/dialog-doc-metadata.c b/src/dialogs/dialog-doc-metadata.c
index 06817fc62..7c96459c3 100644
--- a/src/dialogs/dialog-doc-metadata.c
+++ b/src/dialogs/dialog-doc-metadata.c
@@ -1407,7 +1407,8 @@ cb_dialog_doc_metadata_add_clicked (G_GNUC_UNUSED GtkWidget *w,
const gchar *name = gtk_entry_get_text (state->ppt_name);
const gchar *value = gtk_entry_get_text (state->ppt_value);
gchar *name_trimmed = trim_string (name);
- GType t;
+ GType t = G_TYPE_INVALID; /* we need to initialize that one since
+ gtk_tree_model_get() will only set the low
bytes */
GtkTreeIter filter_iter;
if (gtk_combo_box_get_active_iter (state->ppt_type, &filter_iter)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]