Modified webpage: now tinymail repository is in gitorious.
[modest] / src / widgets / modest-connection-specific-smtp-window.c
index 9087019..a27bbb0 100644 (file)
 #include <gtk/gtkliststore.h>
 #include <modest-scrollable.h>
 #include <modest-toolkit-factory.h>
-#include <hildon/hildon-gtk.h>
 #include <gtk/gtkbutton.h>
 #include <gtk/gtkhbox.h>
 #include <gtk/gtkvbox.h>
 #include <gtk/gtkstock.h>
 
-#include "modest-hildon-includes.h"
 #include "modest-platform.h"
-#include "modest-maemo-utils.h"
+
+#ifdef MODEST_TOOLKIT_HILDON2
+#include <hildon/hildon.h>
+#endif
 
 #include <glib/gi18n.h>
 #include <string.h>
@@ -360,7 +361,11 @@ modest_connection_specific_smtp_window_init (ModestConnectionSpecificSmtpWindow
                G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER));
 
        /* Setup the tree view: */
+#ifdef MODEST_TOOLKIT_HILDON2
        priv->treeview = GTK_TREE_VIEW (hildon_gtk_tree_view_new_with_model (HILDON_UI_MODE_NORMAL, priv->model));
+#else
+       priv->treeview = GTK_TREE_VIEW (gtk_tree_view_new_with_model (priv->model));
+#endif
        g_object_ref_sink (G_OBJECT (priv->treeview));
 
        /* No connections label */
@@ -421,6 +426,10 @@ modest_connection_specific_smtp_window_init (ModestConnectionSpecificSmtpWindow
        /* Set window title */
        gtk_window_set_title (GTK_WINDOW (self), _("mcen_ti_optionalsmtp_servers"));
 
+#ifndef MODEST_TOOLKIT_HILDON2
+       gtk_dialog_add_button (GTK_DIALOG (self), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
+#endif
+
        g_signal_connect (self, "response", G_CALLBACK (on_response), NULL);
 }