* Add sort callback function to the UI action ViewSort
authorJavier Fernandez Garcia-Boente <jfernandez@igalia.com>
Mon, 23 Apr 2007 12:07:42 +0000 (12:07 +0000)
committerJavier Fernandez Garcia-Boente <jfernandez@igalia.com>
Mon, 23 Apr 2007 12:07:42 +0000 (12:07 +0000)
   - this function is not yet implemented.

pmo-trunk-r1634

src/maemo/modest-main-window-ui.h
src/modest-ui-actions.c
src/modest-ui-actions.h
src/widgets/modest-header-view-render.c

index d1fdab1..bc8cd41 100644 (file)
@@ -77,7 +77,7 @@ static const GtkActionEntry modest_action_entries [] = {
        { "EditMoveTo",      NULL,      N_("mcen_me_inbox_moveto"),    NULL,      NULL, NULL },
        
        /* View */
-       { "ViewSort",            NULL,        N_("mcen_me_inbox_sort"),     NULL,      NULL,  NULL },
+       { "ViewSort",            NULL,        N_("mcen_me_inbox_sort"),     NULL,      NULL,  G_CALLBACK (modest_ui_actions_on_sort) },
        { "ViewShowToolbar", NULL, N_("mcen_me_inbox_toolbar") }, /* submenu */
        { "ViewPreviousMessage", NULL,    N_("qgn_toolb_gene_back"),         NULL, NULL, G_CALLBACK (modest_ui_actions_on_prev) },
        { "ViewNextMessage", NULL, N_("qgn_toolb_gene_forward"),      NULL, NULL, G_CALLBACK (modest_ui_actions_on_next) },
@@ -110,7 +110,7 @@ static const GtkActionEntry modest_action_entries [] = {
        { "ToolbarSendReceive",       MODEST_STOCK_REFRESH,   N_("qgn_toolb_gene_refresh"),      NULL, NULL,  G_CALLBACK (modest_ui_actions_on_send_receive) },
        { "ToolbarToggleView",        MODEST_STOCK_SPLIT_VIEW,      N_("gqn_toolb_rss_fldonoff"),                "<CTRL>t", NULL,  G_CALLBACK (modest_ui_actions_toggle_folders_view) },
        { "ToolbarDeleteMessage",     MODEST_STOCK_DELETE,     N_("qgn_toolb_gene_deletebutton"),             NULL, NULL,  G_CALLBACK (modest_ui_actions_on_delete) },
-       { "ToolbarSort",     MODEST_STOCK_SORT,     N_("qgn_list_sort"),             NULL, NULL, NULL },
+       { "ToolbarSort",     MODEST_STOCK_SORT,     N_("qgn_list_sort"),             NULL, NULL,  G_CALLBACK (modest_ui_actions_on_sort) },
        { "ToolbarFindInMessage",     GTK_STOCK_FIND,       N_("qgn_toolb_gene_find"),         NULL, NULL, NULL },
        { "ToolbarMessageBack",       GTK_STOCK_GO_BACK,    N_("qgn_toolb_gene_back"),         NULL, NULL, G_CALLBACK (modest_ui_actions_on_prev) },
        { "ToolbarMessageNext",    GTK_STOCK_GO_FORWARD, N_("qgn_toolb_gene_forward"),      NULL, NULL, G_CALLBACK (modest_ui_actions_on_next) },
index c48c979..82c1237 100644 (file)
@@ -583,6 +583,14 @@ modest_ui_actions_on_prev (GtkAction *action,
        }
 }
 
+void 
+modest_ui_actions_on_sort (GtkAction *action, 
+                          ModestWindow *window)
+{
+       g_return_if_fail (MODEST_IS_WINDOW(window));
+       /* FIXME: unimplemented */
+}
+
 
 static gboolean
 action_send (const gchar* account_name)
index 04a481e..86c1cc7 100644 (file)
@@ -61,6 +61,8 @@ void     modest_ui_actions_on_reply         (GtkAction *action, ModestWindow *wi
 
 void     modest_ui_actions_on_forward       (GtkAction *action, ModestWindow *win);
 
+void     modest_ui_actions_on_sort          (GtkAction *action, ModestWindow *window);
+
 void     modest_ui_actions_on_reply_all     (GtkAction *action, ModestWindow *win);
 
 void     modest_ui_actions_on_next          (GtkAction *action, ModestWindow *main_window);
index 522a987..8242061 100644 (file)
@@ -296,6 +296,7 @@ _modest_header_view_compact_header_cell_data  (GtkTreeViewColumn *column,  GtkCe
                                    TNY_GTK_HEADER_LIST_MODEL_SUBJECT_COLUMN, &subject,
                                    TNY_GTK_HEADER_LIST_MODEL_DATE_SENT_TIME_T_COLUMN, &date,   
                                    -1);
+
        rendobj = G_OBJECT(renderer);
        header = g_markup_printf_escaped ("%s\n<small>%s</small>",
                                          subject ? subject : _("mail_va_no_subject"),