[glom] Dialog_Choose_ID: Work around a crash in GTK+.



commit 5cf223201ece3534ab177e7eaaa75322542e8bec
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Sep 29 12:18:31 2011 +0200

    Dialog_Choose_ID: Work around a crash in GTK+.
    
    * glom/mode_data/datawidget/dialog_choose_id.cc: Remove the Box_Data_List
    from the parent container (we added it earlier), to avoid a crash, though
    it would be good to fix that properly and generically.
    Bug #660347

 ChangeLog                                     |    9 +++++++++
 glom/mode_data/datawidget/dialog_choose_id.cc |    4 ++++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 63c9a3b..a00c5a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2011-09-29  Murray Cumming  <murrayc murrayc com>
 
+	Dialog_Choose_ID: Work around a crash in GTK+.
+
+	* glom/mode_data/datawidget/dialog_choose_id.cc: Remove the Box_Data_List 
+	from the parent container (we added it earlier), to avoid a crash, though 
+	it would be good to fix that properly and generically.
+	Bug #660347
+
+2011-09-29  Murray Cumming  <murrayc murrayc com>
+
 	build_simple_where_expression(): Check input parameters.
 
 	* glom/libglom/utils.cc: build_simple_where_expression(): Check for an 
diff --git a/glom/mode_data/datawidget/dialog_choose_id.cc b/glom/mode_data/datawidget/dialog_choose_id.cc
index 3f251f1..0a3679f 100644
--- a/glom/mode_data/datawidget/dialog_choose_id.cc
+++ b/glom/mode_data/datawidget/dialog_choose_id.cc
@@ -72,6 +72,10 @@ Dialog_ChooseID::~Dialog_ChooseID()
 {
   remove_view(&m_box_find);
   remove_view(&m_box_select);
+  
+  //Work around this bug (apparently in GTK+):
+  //https://bugzilla.gnome.org/show_bug.cgi?id=660347
+  m_alignment_parent->remove();
 }
 
 void Dialog_ChooseID::setup()



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