[annum] Convince GTK+ that ETimezoneEntry exists, by making sure the type is registered.
- From: Gustavo Noronha Silva <gns src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [annum] Convince GTK+ that ETimezoneEntry exists, by making sure the type is registered.
- Date: Mon, 25 Jan 2010 20:58:04 +0000 (UTC)
commit 4bfe29bddcb2119744494f1db11385d2a91daba5
Author: Gustavo Noronha Silva <gustavo noronha collabora co uk>
Date: Fri Jan 22 17:33:11 2010 -0200
Convince GTK+ that ETimezoneEntry exists, by making sure the type is registered.
src/annum-application.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/annum-application.c b/src/annum-application.c
index 40b00ab..b911a50 100644
--- a/src/annum-application.c
+++ b/src/annum-application.c
@@ -22,6 +22,7 @@
#include "annum-shell-backend.h"
#include "annum-shell-window.h"
+#include <calendar/gui/e-timezone-entry.h>
#include <glib/gi18n.h>
#include <shell/e-shell.h>
@@ -122,5 +123,10 @@ void annum_application_run (AnnumApplication * self)
NULL);
gtk_widget_show_all (main_window);
+ /* Hackish hack; this is so that the GTK+ UI builder finds the
+ * type, when creating dialos from .ui file definitions.
+ */
+ g_type_name (E_TYPE_TIMEZONE_ENTRY);
+
gtk_main ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]