comparison finch/libgnt/gntfilesel.h @ 21158:bddf964880cf

disapproval of revision '240095fc3a12eafe8418f57362c4b2a88da143c1'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 07 Nov 2007 13:49:26 +0000
parents 8d73d519155a
children e119edfc0fb0
comparison
equal deleted inserted replaced
21157:8d73d519155a 21158:bddf964880cf
96 }; 96 };
97 97
98 G_BEGIN_DECLS 98 G_BEGIN_DECLS
99 99
100 /** 100 /**
101 * 101 *
102 * 102 *
103 * @return 103 * @return
104 */ 104 */
105 GType gnt_file_sel_get_gtype(void); 105 GType gnt_file_sel_get_gtype(void);
106 106
107 /** 107 /**
108 * 108 *
109 * 109 *
110 * @return 110 * @return
111 */ 111 */
112 GntWidget * gnt_file_sel_new(void); 112 GntWidget * gnt_file_sel_new(void);
113 113
114 /** 114 /**
115 *
116 * @param sel
117 * @param path
115 * 118 *
116 * @return 119 * @return
117 */ 120 */
118 gboolean gnt_file_sel_set_current_location(GntFileSel *sel, const char *path); 121 gboolean gnt_file_sel_set_current_location(GntFileSel *sel, const char *path);
119 122
120 /** 123 /**
121 * 124 *
125 * @param sel
126 * @param dirs
122 */ 127 */
123 void gnt_file_sel_set_dirs_only(GntFileSel *sel, gboolean dirs); 128 void gnt_file_sel_set_dirs_only(GntFileSel *sel, gboolean dirs);
124 129
125 /** 130 /**
131 *
132 * @param sel
126 * 133 *
127 * @return 134 * @return
128 */ 135 */
129 gboolean gnt_file_sel_get_dirs_only(GntFileSel *sel); 136 gboolean gnt_file_sel_get_dirs_only(GntFileSel *sel);
130 137
131 /** 138 /**
132 * 139 *
140 * @param sel
141 * @param must
133 */ 142 */
134 void gnt_file_sel_set_must_exist(GntFileSel *sel, gboolean must); 143 void gnt_file_sel_set_must_exist(GntFileSel *sel, gboolean must);
135 144
136 /** 145 /**
137 * 146 *
147 * @param sel
138 * 148 *
139 * @return 149 * @return
140 */ 150 */
141 gboolean gnt_file_sel_get_must_exist(GntFileSel *sel); 151 gboolean gnt_file_sel_get_must_exist(GntFileSel *sel);
142 152
143 /** 153 /**
144 * 154 *
155 * @param sel
145 * 156 *
146 * @return 157 * @return
147 */ 158 */
148 char * gnt_file_sel_get_selected_file(GntFileSel *sel); 159 char * gnt_file_sel_get_selected_file(GntFileSel *sel);
149 160
150 /* The returned value should be free'd */ 161 /* The returned value should be free'd */
151 162
152 /** 163 /**
153 * 164 *
165 * @param sel
154 * 166 *
155 * @return 167 * @return
156 */ 168 */
157 GList * gnt_file_sel_get_selected_multi_files(GntFileSel *sel); 169 GList * gnt_file_sel_get_selected_multi_files(GntFileSel *sel);
158 170
159 /** 171 /**
160 * 172 *
173 * @param sel
174 * @param set
161 */ 175 */
162 void gnt_file_sel_set_multi_select(GntFileSel *sel, gboolean set); 176 void gnt_file_sel_set_multi_select(GntFileSel *sel, gboolean set);
163 177
164 /** 178 /**
165 * 179 *
180 * @param sel
181 * @param suggest
166 */ 182 */
167 void gnt_file_sel_set_suggested_filename(GntFileSel *sel, const char *suggest); 183 void gnt_file_sel_set_suggested_filename(GntFileSel *sel, const char *suggest);
168 184
169 /** 185 /**
170 * 186 *
187 * @param sel
188 * @param path
189 * @param files
190 * @param error)
171 */ 191 */
172 void gnt_file_sel_set_read_fn(GntFileSel *sel, gboolean (*read_fn)(const char *path, GList **files, GError **error)); 192 void gnt_file_sel_set_read_fn(GntFileSel *sel, gboolean (*read_fn)(const char *path, GList **files, GError **error));
173 193
174 /** 194 /**
175 * 195 *
196 * @param name
197 * @param size
176 * 198 *
177 * @return 199 * @return
178 */ 200 */
179 GntFile* gnt_file_new(const char *name, unsigned long size); 201 GntFile* gnt_file_new(const char *name, unsigned long size);
180 202
181 /** 203 /**
182 * 204 *
205 * @param name
183 * 206 *
184 * @return 207 * @return
185 */ 208 */
186 GntFile* gnt_file_new_dir(const char *name); 209 GntFile* gnt_file_new_dir(const char *name);
187 210