[almanah] core: Work around a GtkBuilder bug with more recent versions of GTK+



commit 471dab3ea999e4716c33f72870b510a70fa588d3
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sun Mar 25 11:03:09 2012 +0100

    core: Work around a GtkBuilder bug with more recent versions of GTK+
    
    Work around bgo#672789 in more recent versions of GTK+ by always requesting
    to load the GtkUIManager XML when using gtk_builder_add_objects_from_file().

 src/date-entry-dialog.c    |    1 +
 src/import-export-dialog.c |    2 ++
 src/preferences-dialog.c   |    1 +
 src/search-dialog.c        |    1 +
 src/uri-entry-dialog.c     |    1 +
 5 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/date-entry-dialog.c b/src/date-entry-dialog.c
index 8fad8f0..ed77391 100644
--- a/src/date-entry-dialog.c
+++ b/src/date-entry-dialog.c
@@ -114,6 +114,7 @@ almanah_date_entry_dialog_new (void)
 	const gchar *interface_filename = almanah_get_interface_filename ();
 	const gchar *object_names[] = {
 		"almanah_date_entry_dialog",
+		"almanah_ui_manager", /* HACK: work around bgo#672789 */
 		NULL
 	};
 
diff --git a/src/import-export-dialog.c b/src/import-export-dialog.c
index 2fcef97..bc9fb8d 100644
--- a/src/import-export-dialog.c
+++ b/src/import-export-dialog.c
@@ -154,6 +154,7 @@ almanah_import_export_dialog_new (AlmanahStorageManager *storage_manager, gboole
 	const gchar *object_names[] = {
 		"almanah_ied_mode_store",
 		"almanah_import_export_dialog",
+		"almanah_ui_manager", /* HACK: work around bgo#672789 */
 		NULL
 	};
 
@@ -459,6 +460,7 @@ almanah_import_results_dialog_new (void)
 		"almanah_ird_results_store",
 		"almanah_ird_filtered_results_store",
 		"almanah_import_results_dialog",
+		"almanah_ui_manager", /* HACK: work around bgo#672789 */
 		NULL
 	};
 
diff --git a/src/preferences-dialog.c b/src/preferences-dialog.c
index 71cdbab..11cdf33 100644
--- a/src/preferences-dialog.c
+++ b/src/preferences-dialog.c
@@ -174,6 +174,7 @@ almanah_preferences_dialog_new (GSettings *settings)
 	const gchar *interface_filename = almanah_get_interface_filename ();
 	const gchar *object_names[] = {
 		"almanah_preferences_dialog",
+		"almanah_ui_manager", /* HACK: work around bgo#672789 */
 		NULL
 	};
 
diff --git a/src/search-dialog.c b/src/search-dialog.c
index ba2b881..d8b75e3 100644
--- a/src/search-dialog.c
+++ b/src/search-dialog.c
@@ -82,6 +82,7 @@ almanah_search_dialog_new (void)
 		"almanah_sd_search_button_image",
 		"almanah_sd_cancel_button_image",
 		"almanah_sd_results_store",
+		"almanah_ui_manager", /* HACK: work around bgo#672789 */
 		NULL
 	};
 
diff --git a/src/uri-entry-dialog.c b/src/uri-entry-dialog.c
index 77690fd..7ac129c 100644
--- a/src/uri-entry-dialog.c
+++ b/src/uri-entry-dialog.c
@@ -113,6 +113,7 @@ almanah_uri_entry_dialog_new (void)
 	const gchar *interface_filename = almanah_get_interface_filename ();
 	const gchar *object_names[] = {
 		"almanah_uri_entry_dialog",
+		"almanah_ui_manager", /* HACK: work around bgo#672789 */
 		NULL
 	};
 



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