Constify messageview_get_msgview_list()
authorColin Leroy <colin@colino.net>
Thu, 22 May 2014 20:12:56 +0000 (22:12 +0200)
committerColin Leroy <colin@colino.net>
Thu, 22 May 2014 20:12:56 +0000 (22:12 +0200)
src/messageview.c
src/messageview.h
src/summaryview.c

index b3b815b92b490757cf50fc430bf3ec3b749afd27..2d9c6778f924853d8ef16097d9cedfe36084802c 100644 (file)
@@ -442,7 +442,7 @@ MessageView *messageview_create(MainWindow *mainwin)
        return messageview;
 }
 
-GList *messageview_get_msgview_list(void)
+const GList *messageview_get_msgview_list(void)
 {
        return msgview_list;
 }
index 7ef19311dbc406199c2893f372a076ead9b519ea..e2e429b1862d48c2644a1eb24eaeeafd9866a541 100644 (file)
@@ -98,7 +98,7 @@ void messageview_copy_clipboard                       (MessageView    *messageview);
 void messageview_select_all                    (MessageView    *messageview);
 void messageview_set_position                  (MessageView    *messageview,
                                                 gint            pos);
-GList *messageview_get_msgview_list            (void);
+const GList *messageview_get_msgview_list      (void);
 void messageview_delete                                (MessageView    *messageview);
 gboolean messageview_search_string             (MessageView    *messageview,
                                                 const gchar    *str,
index 13ad15508855c85857310c2f73642c2e1796435b..a0935d260a8206ed2978e30b9ea477d85f1f8fd8 100644 (file)
@@ -6895,7 +6895,7 @@ static void summary_unselected(GtkCMCTree *ctree, GtkCMCTreeNode *row,
 static void summary_selected(GtkCMCTree *ctree, GtkCMCTreeNode *row,
                             gint column, SummaryView *summaryview)
 {
-       GList *list, *cur;
+       const GList *list, *cur;
        MessageView *msgview;
        MsgInfo *msginfo;
        gboolean marked_unread = FALSE;