* src/modest-platform.h:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 21 Jun 2007 09:35:23 +0000 (09:35 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 21 Jun 2007 09:35:23 +0000 (09:35 +0000)
        * Added a new platform function for showing information banner. Should
          remove a new dependency in common non specific maemo code.
* src/modest-dimming-rules-group.c:
        * Now it does not use hildon information banner, but the new platform
          equivalent.
* src/modest-ui-actions.c:
        * Now it shows an information banner on copying the messages to outbox
          (fixes NB#59332).
* src/maemo/modest-platform.c:
        * Added implementation of the new information banner platform function,
          that uses the hildon information banner.

pmo-trunk-r2350

src/maemo/modest-platform.c
src/modest-dimming-rules-group.c
src/modest-platform.h
src/modest-ui-actions.c

index 01a8f96..1dab457 100644 (file)
@@ -1023,3 +1023,11 @@ modest_platform_create_folder_view (TnyFolderStoreQuery *query)
 
        return widget;
 }
+
+void 
+modest_platform_information_banner (GtkWidget *widget,
+                                   const gchar *icon_name,
+                                   const gchar *text)
+{
+       hildon_banner_show_information (widget, icon_name, text);
+}
index 84e50a1..75eb591 100644 (file)
@@ -30,7 +30,7 @@
 #include "modest-dimming-rules-group.h"
 #include "modest-dimming-rules-group-priv.h"
 #include "modest-dimming-rule.h"
-#include "modest-hildon-includes.h"
+#include "modest-platform.h"
 
 static void modest_dimming_rules_group_class_init (ModestDimmingRulesGroupClass *klass);
 static void modest_dimming_rules_group_init       (ModestDimmingRulesGroup *obj);
@@ -235,7 +235,7 @@ _insensitive_press_callback (GtkWidget *widget, gpointer user_data)
        if (notification == NULL) return;
 
        /* Show notification banner */
-       hildon_banner_show_information (NULL, NULL, notification);      
+       modest_platform_information_banner (NULL, NULL, notification);  
 
        /* Free */
        g_free(notification);
index 0d6f41c..cf17116 100644 (file)
@@ -245,6 +245,10 @@ void modest_platform_show_addressbook (GtkWindow *parent_window);
 
 GtkWidget* modest_platform_create_folder_view (TnyFolderStoreQuery *query);
 
+void modest_platform_information_banner (GtkWidget *widget,
+                                        const gchar *icon_name,
+                                        const gchar *text);
+
 G_END_DECLS
 
 #endif /* __MODEST_PLATFORM_UTILS_H__ */
index 2b7b5e1..0ce163d 100644 (file)
@@ -1590,6 +1590,8 @@ modest_ui_actions_on_send (GtkWidget *widget, ModestMsgEditWindow *edit_window)
                }
        }
 
+       modest_platform_information_banner (NULL, NULL, _("mcen_ib_outbox_waiting_to_be_sent"));
+
        /* Create the mail operation */
        ModestMailOperation *mail_operation = modest_mail_operation_new (MODEST_MAIL_OPERATION_TYPE_SEND, G_OBJECT(edit_window));
        modest_mail_operation_queue_add (modest_runtime_get_mail_operation_queue (), mail_operation);