Build with scrolled window if target is gtk
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 29 Oct 2009 18:41:28 +0000 (19:41 +0100)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 29 Oct 2009 18:48:11 +0000 (19:48 +0100)
src/widgets/modest-toolkit-factory.c

index a2451da..40caf60 100644 (file)
  */
 
 #include <glib/gi18n.h>
  */
 
 #include <glib/gi18n.h>
+#ifdef MODEST_TOOLKIT_HILDON2
 #include <modest-hildon-pannable-area-scrollable.h>
 #include <modest-hildon-pannable-area-scrollable.h>
+#else
+#include <modest-scrolled-window-scrollable.h>
+#endif
 #include "modest-toolkit-factory.h"
 
 static void modest_toolkit_factory_class_init (ModestToolkitFactoryClass *klass);
 #include "modest-toolkit-factory.h"
 
 static void modest_toolkit_factory_class_init (ModestToolkitFactoryClass *klass);
@@ -73,5 +77,9 @@ modest_toolkit_factory_create_scrollable (ModestToolkitFactory *self)
 static GtkWidget *
 modest_toolkit_factory_create_scrollable_default (ModestToolkitFactory *self)
 {
 static GtkWidget *
 modest_toolkit_factory_create_scrollable_default (ModestToolkitFactory *self)
 {
+#ifdef MODEST_TOOLKIT_HILDON2
        return modest_hildon_pannable_area_scrollable_new ();
        return modest_hildon_pannable_area_scrollable_new ();
+#else
+       return modest_scrolled_window_scrollable_new ();
+#endif
 }
 }