Changeset 3469

Show
Ignore:
Timestamp:
03/05/08 15:23:38
Author:
pvanhoof
Message:
        • Introduction of tny_gtk_header_list_model_get_no_duplicates for

completeness of language bindings who'll make getters/setters from
this.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ChangeLog

    r3468 r3469  
    33        * Check-for-duplicates in TnyFolderObserver and TnyFolderMonitor 
    44        * Introduction of tny_gtk_header_list_model_set_no_duplicates 
     5        * Introduction of tny_gtk_header_list_model_get_no_duplicates for 
     6        completeness of language bindings who'll make getters/setters from 
     7        this. 
    58 
    69        * This was a minor API change 
  • trunk/libtinymailui-gtk/tny-gtk-header-list-model.c

    r3468 r3469  
    11671167} 
    11681168 
     1169 
     1170 
     1171/** 
     1172 * tny_gtk_header_list_model_get_no_duplicates: 
     1173 * @self: a #TnyGtkHeaderListModel 
     1174 * 
     1175 * Gets whether or not @self allows duplicates of TnyHeader instances to be 
     1176 * added. The duplicates will be tested by tny_header_get_uid uniqueness. 
     1177 * Setting this property to TRUE will negatively impact performance of @self. 
     1178 * It'll also influence behaviour of tny_list_prepend and tny_list_append. 
     1179 * 
     1180 * Default value, therefore, is FALSE. 
     1181 *  
     1182 * returns: whether or not to allow duplicates 
     1183 * since: 1.0 
     1184 * audience: application-developer 
     1185 **/ 
     1186gboolean  
     1187tny_gtk_header_list_model_get_no_duplicates (TnyGtkHeaderListModel *self) 
     1188{ 
     1189        TnyGtkHeaderListModelPriv *priv = TNY_GTK_HEADER_LIST_MODEL_GET_PRIVATE (self); 
     1190        return priv->no_duplicates; 
     1191} 
    11691192 
    11701193/** 
  • trunk/libtinymailui-gtk/tny-gtk-header-list-model.h

    r3468 r3469  
    7979gint tny_gtk_header_list_model_sent_date_sort_func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data); 
    8080void tny_gtk_header_list_model_set_no_duplicates (TnyGtkHeaderListModel *self, gboolean setting); 
     81gboolean tny_gtk_header_list_model_get_no_duplicates (TnyGtkHeaderListModel *self); 
    8182 
    8283G_END_DECLS