* Added show toolbar application wide code
[modest] / src / gnome / modest-platform.c
index 1877709..d925ac3 100644 (file)
@@ -31,6 +31,7 @@
 #include <libgnomevfs/gnome-vfs-mime.h>
 #include <libgnomeui/gnome-icon-lookup.h>
 #include <tny-gnome-device.h>
+#include <modest-runtime.h>
 
 gboolean
 modest_platform_init (void)
@@ -77,3 +78,36 @@ modest_platform_get_file_icon_name (const gchar* name, const gchar* mime_type,
 
        return icon_name;
 }
+
+gboolean 
+modest_platform_activate_uri (const gchar *uri)
+{
+       modest_runtime_not_implemented (NULL);
+       return FALSE;
+}
+
+gboolean 
+modest_platform_show_uri_popup (const gchar *uri)
+{
+       modest_runtime_not_implemented (NULL);
+       return FALSE;
+}
+
+GdkPixbuf*
+modest_platform_get_icon (const gchar *name)
+{
+       GError *err = NULL;
+       GdkPixbuf* pixbuf;
+
+       g_return_val_if_fail (name, NULL);
+
+       pixbuf = gdk_pixbuf_new_from_file (name, &err);
+
+       if (!pixbuf) {
+               g_printerr ("modest: error while loading icon '%s': %s\n",
+                           name, err->message);
+               g_error_free (err);
+       }
+       
+       return pixbuf;
+}