2 #include <glade/glade.h>
3 #include <glib/gi18n.h>
8 #endif /*HAVE_CONFIG_H*/
10 /* TODO: put in auto* */
11 #include <tny-text-buffer-stream.h>
12 #include <tny-msg-folder.h>
14 #include "../modest-ui.h"
15 #include "../modest-window-mgr.h"
16 #include "../modest-account-mgr.h"
17 #include "../modest-account-mgr.h"
18 #include "../modest-identity-mgr.h"
20 #include "../modest-tny-account-store.h"
21 #include "../modest-tny-folder-tree-view.h"
22 #include "../modest-tny-header-tree-view.h"
23 #include "../modest-tny-msg-view.h"
24 #include "../modest-tny-transport-actions.h"
25 #include "../modest-tny-store-actions.h"
27 #include "../modest-text-utils.h"
28 #include "../modest-tny-msg-actions.h"
30 #include "../modest-viewer-window.h"
32 #include "modest-ui-glade.h"
33 #include "modest-ui-wizard.h"
38 ModestViewerWindow *viewer_win;
44 *modest_ui_new_viewer_window (ModestUI *modest_ui, GtkWidget *msg_view, TnyMsgIface *msg, gpointer *user_data)
46 GtkWidget *top_container;
48 ViewerWinData *win_data;
50 glade_xml = glade_xml_new(MODEST_GLADE, "viewer_top_container", NULL);
54 win_data = g_malloc(sizeof(ViewerWinData));
55 win_data->modest_ui = modest_ui;
56 win_data->glade_xml = glade_xml;
58 *user_data = win_data;
60 top_container = glade_xml_get_widget(glade_xml, "viewer_top_container");
62 g_object_unref(G_OBJECT(glade_xml));
66 return GTK_CONTAINER(top_container);