[glom/glom-1-18] Images: Avoid a warning when choosing.



commit a703981a9bb942dac08bd454c1dfa37310f8abed
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 10d064c..40d5860 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-21  Murray Cumming  <murrayc murrayc com>
 
 	Require latest libgdamm, for the Value::operator=() fix.
diff --git a/glom/utility_widgets/imageglom.cc b/glom/utility_widgets/imageglom.cc
index a36eb98..61d2c26 100644
--- a/glom/utility_widgets/imageglom.cc
+++ b/glom/utility_widgets/imageglom.cc
@@ -378,7 +378,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);
 
           m_pixbuf_original = dialog->get_pixbuf();



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