~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/brasero-file-node.h

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-11-18 11:30:50 UTC
  • mto: (1.4.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: james.westby@ubuntu.com-20081118113050-yhrskmatlel0gzfm
Tags: upstream-0.8.3
ImportĀ upstreamĀ versionĀ 0.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
         * discs. */
109
109
        union {
110
110
                guint sectors;
 
111
 
 
112
                /* stores the address of the children records in image */
 
113
                guint imported_address;
111
114
                BraseroFileTreeStats *stats;
112
115
        } union3;
113
116
 
134
137
 
135
138
        /* This is for nodes created at project load time. This means
136
139
         * that they can be replaced if a real directory is under the
137
 
         * parent */
 
140
         * parent with the same name*/
138
141
        guint is_tmp_parent:1;
139
142
 
140
143
        /* this should be set by BraseroDataDisc */
141
144
        guint is_expanded:1;
142
145
        guint is_selected:1;
143
146
 
 
147
        /* Used by the model */
 
148
        /* This is a workaround for a warning in gailtreeview.c line 2946 where
 
149
         * gail uses the GtkTreePath and not a copy which if the node inserted
 
150
         * declares to have children and is not expanded leads to the path being
 
151
         * upped and therefore wrong. */
 
152
        guint is_inserting:1;
 
153
 
144
154
        /* this is a ref count a max of 255 should be enough */
145
 
        guint is_visible:8;
 
155
        guint is_visible:7;
146
156
};
147
157
 
148
158
/** Returns a const gchar* (it shouldn't be freed). */
169
179
#define BRASERO_FILE_NODE_STATS(MACRO_root)                                     \
170
180
        ((MACRO_root)->is_root?(MACRO_root)->union3.stats:NULL)
171
181
 
 
182
#define BRASERO_FILE_NODE_IMPORTED_ADDRESS(MACRO_node)                          \
 
183
        ((MACRO_node) && (MACRO_node)->is_imported && (MACRO_node)->is_fake?(MACRO_node)->union3.imported_address:-1)
 
184
 
172
185
#define BRASERO_FILE_2G_LIMIT           1048576
173
186
 
174
187
BraseroFileNode *
229
242
                                    BraseroFileNode *parent,
230
243
                                    GCompareFunc sort_func);
231
244
BraseroFileNode *
232
 
brasero_file_node_new_imported_session_file (BraseroVolFile *file,
 
245
brasero_file_node_new_imported_session_file (GFileInfo *info,
233
246
                                             BraseroFileNode *parent,
234
247
                                             GCompareFunc sort_func);
235
248