~ubuntu-branches/ubuntu/karmic/libtinymail/karmic

« back to all changes in this revision

Viewing changes to docs/devel/reference/tmpl/tny-gtk-attach-list-model.sgml

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-10-12 11:21:12 UTC
  • Revision ID: james.westby@ubuntu.com-20071012112112-fod9fs7yrooxjr7i
Tags: upstream-0.0.2
ImportĀ upstreamĀ versionĀ 0.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- ##### SECTION Title ##### -->
 
2
TnyGtkAttachListModel
 
3
 
 
4
<!-- ##### SECTION Short_Description ##### -->
 
5
A tree model for mime part instances
 
6
 
 
7
<!-- ##### SECTION Long_Description ##### -->
 
8
<para>
 
9
A #GtkTreeModel for storing #TnyMimePart instances.
 
10
</para>
 
11
<para>
 
12
The implementation inherits the #GtkListStore, implements #GtkTreeModel and #TnyList.
 
13
If the library was compiled with gnome features, the implementation will handle the 
 
14
mime-type icon automatically.
 
15
</para>
 
16
<para>
 
17
It's very important to unreference the instance you will get when doing something like this:
 
18
<programlisting>
 
19
TnyMimePart *part;
 
20
gtk_tree_model_get (model, &amp;iter, TNY_ATTACH_LIST_MODEL_INSTANCE_COLUMN, &amp;part, -1);
 
21
/* use part */
 
22
g_object_unref (G_OBJECT(partr));
 
23
</programlisting>
 
24
The column is indeed a G_TYPE_OBJECT column and getting it from the #GtkTreeModel will indeed add a reference.
 
25
</para>
 
26
 
 
27
<!-- ##### SECTION See_Also ##### -->
 
28
<para>
 
29
#TnyList, #TnyMimePart, #GtkTreeModel, #GtkListStore, #GtkTreeView, #TnyGtkAttachListModelColumn
 
30
</para>
 
31
 
 
32
<!-- ##### SECTION Stability_Level ##### -->
 
33
 
 
34
 
 
35
<!-- ##### MACRO TNY_TYPE_GTK_ATTACH_LIST_MODEL_COLUMN ##### -->
 
36
<para>
 
37
 
 
38
</para>
 
39
 
 
40
 
 
41
 
 
42
<!-- ##### STRUCT TnyGtkAttachListModel ##### -->
 
43
<para>
 
44
 
 
45
</para>
 
46
 
 
47
 
 
48
<!-- ##### FUNCTION tny_gtk_attach_list_model_column_get_type ##### -->
 
49
<para>
 
50
 
 
51
</para>
 
52
 
 
53
@Returns: 
 
54
 
 
55
 
 
56
<!-- ##### FUNCTION tny_gtk_attach_list_model_new ##### -->
 
57
<para>
 
58
 
 
59
</para>
 
60
 
 
61
@Returns: 
 
62
 
 
63