[glom/glom-1-18] Dialog_Choose_ID: Work around a crash in GTK+.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-18] Dialog_Choose_ID: Work around a crash in GTK+.
- Date: Fri, 7 Oct 2011 07:52:43 +0000 (UTC)
commit 238d24368037964e09ee8541a15755b169161429
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 5bc197c..7bc20b5 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 e6791f5..505db93 100644
--- a/glom/mode_data/datawidget/dialog_choose_id.cc
+++ b/glom/mode_data/datawidget/dialog_choose_id.cc
@@ -79,6 +79,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]