[glom] on_menu_file_import(): Mention adjustment1 to work around GtkBuilder bug #575714.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Subject: [glom] on_menu_file_import(): Mention adjustment1 to work around GtkBuilder bug #575714.
- Date: Thu, 9 Jul 2009 16:57:57 +0000 (UTC)
commit feee482ed31a39ca4232a8af8a84992aefe23b37
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Jul 9 18:57:40 2009 +0200
on_menu_file_import(): Mention adjustment1 to work around GtkBuilder bug #575714.
glom/frame_glom.cc | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/glom/frame_glom.cc b/glom/frame_glom.cc
index f4ab4af..dc9b96c 100644
--- a/glom/frame_glom.cc
+++ b/glom/frame_glom.cc
@@ -810,8 +810,16 @@ void Frame_Glom::on_menu_file_import()
{
file_chooser.hide();
+ //GtkBuilder can't find top-level objects (GtkAdjustments in this case),
+ //that one top-level object references.
+ //See http://bugzilla.gnome.org/show_bug.cgi?id=575714
+ //so we need to this silliness. murrayc.
+ std::list<Glib::ustring> builder_ids;
+ builder_ids.push_back("dialog_import_csv");
+ builder_ids.push_back("adjustment1");
+
Dialog_Import_CSV* dialog = 0;
- Glib::RefPtr<Gtk::Builder> refXml = Gtk::Builder::create_from_file(Utils::get_glade_file_path("glom.glade"), "dialog_import_csv");
+ Glib::RefPtr<Gtk::Builder> refXml = Gtk::Builder::create_from_file(Utils::get_glade_file_path("glom.glade"), builder_ids);
refXml->get_widget_derived("dialog_import_csv", dialog);
add_view(dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]