[glom] Images: Avoid a warning when choosing.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Images: Avoid a warning when choosing.
- Date: Mon, 19 Sep 2011 13:00:55 +0000 (UTC)
commit 2dc5e5c89d5fe3c7ad422524ebe68274b795ad75
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Sep 19 15:00:01 2011 +0200
Images: Avoid a warning when choosing.
* glom/utility_widgets/imageglom.cc: on_menupopup_activate_select_file():
Avoid a warning about reinitializing a GValue when choosing an image file.
ChangeLog | 7 +++++++
glom/utility_widgets/imageglom.cc | 4 +++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f885582..644e147 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-19 Murray Cumming <murrayc murrayc-desktop>
+
+ reviewed by: <delete if not using a buddy>
+
+ * glom/utility_widgets/canvas/canvas_image_movable.cc:
+ * glom/utility_widgets/imageglom.cc:
+
2011-09-13 Murray Cumming <murrayc murrayc com>>
Remove the Add Related Table feature.
diff --git a/glom/utility_widgets/imageglom.cc b/glom/utility_widgets/imageglom.cc
index fbfd9cb..6dbcf17 100644
--- a/glom/utility_widgets/imageglom.cc
+++ b/glom/utility_widgets/imageglom.cc
@@ -799,7 +799,9 @@ void ImageGlom::on_menupopup_activate_select_file()
bin->binary_length = image_data->binary_length;
m_original_data = Gnome::Gda::Value();
- m_original_data.Glib::ValueBase::init(GDA_TYPE_BINARY);
+
+ g_value_unset(m_original_data.gobj());
+ g_value_init(m_original_data.gobj(), GDA_TYPE_BINARY);
gda_value_take_binary(m_original_data.gobj(), bin);
show_image_data();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]