Thu, 06 Feb 2014 20:47:29 +0530
Update doc labels for renamed functions
|
18358
2122fd567315
Generate doxy-help files for libgnt. And make it actually work.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
17586
diff
changeset
|
1 | /* |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
2 | * GNT - The GLib Ncurses Toolkit |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
3 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
4 | * GNT is the legal property of its developers, whose names are too numerous |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
6 | * source distribution. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
7 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
8 | * This library is free software; you can redistribute it and/or modify |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
9 | * it under the terms of the GNU General Public License as published by |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
10 | * the Free Software Foundation; either version 2 of the License, or |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
11 | * (at your option) any later version. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
12 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
13 | * This program is distributed in the hope that it will be useful, |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
16 | * GNU General Public License for more details. |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
17 | * |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
19 | * along with this program; if not, write to the Free Software |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18358
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
21 | */ |
|
35446
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35408
diff
changeset
|
22 | /** |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35408
diff
changeset
|
23 | * SECTION:gntfilesel |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35408
diff
changeset
|
24 | * @section_id: libgnt-gntfilesel |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35408
diff
changeset
|
25 | * @short_description: <filename>gntfilesel.h</filename> |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35408
diff
changeset
|
26 | * @title: File Selector |
|
c0f80955551d
Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents:
35408
diff
changeset
|
27 | */ |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
28 | |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
29 | #ifndef GNT_FILE_SEL_H |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
30 | #define GNT_FILE_SEL_H |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
31 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
32 | #include "gntwindow.h" |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
33 | #include "gnt.h" |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
34 | #include "gntcolors.h" |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
35 | #include "gntkeys.h" |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
36 | |
|
35379
ea1a0327001e
Rename _get_gtype() functions in libgnt to _get_type()
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
37 | #define GNT_TYPE_FILE_SEL (gnt_file_sel_get_type()) |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
38 | #define GNT_FILE_SEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_FILE_SEL, GntFileSel)) |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
39 | #define GNT_FILE_SEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_FILE_SEL, GntFileSelClass)) |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
40 | #define GNT_IS_FILE_SEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_FILE_SEL)) |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
41 | #define GNT_IS_FILE_SEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_FILE_SEL)) |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
42 | #define GNT_FILE_SEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_FILE_SEL, GntFileSelClass)) |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
43 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
44 | #define GNT_FILE_SEL_FLAGS(obj) (GNT_FILE_SEL(obj)->priv.flags) |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
45 | #define GNT_FILE_SEL_SET_FLAGS(obj, flags) (GNT_FILE_SEL_FLAGS(obj) |= flags) |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
46 | #define GNT_FILE_SEL_UNSET_FLAGS(obj, flags) (GNT_FILE_SEL_FLAGS(obj) &= ~(flags)) |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
47 | |
|
15986
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
48 | typedef struct _GntFileSel GntFileSel; |
|
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
49 | typedef struct _GntFileSelPriv GntFileSelPriv; |
|
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
50 | typedef struct _GntFileSelClass GntFileSelClass; |
|
16049
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
51 | typedef struct _GntFile GntFile; |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
52 | |
|
15986
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
53 | struct _GntFileSel |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
54 | { |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
55 | GntWindow parent; |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
56 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
57 | GntWidget *dirs; /* list of files */ |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
58 | GntWidget *files; /* list of directories */ |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
59 | GntWidget *location; /* location entry */ |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
60 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
61 | GntWidget *select; /* select button */ |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
62 | GntWidget *cancel; /* cancel button */ |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
63 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
64 | char *current; /* Full path of the current location */ |
| 16000 | 65 | char *suggest; /* Suggested filename */ |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
66 | /* XXX: someone should make these useful */ |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
67 | gboolean must_exist; /* Make sure the selected file (the name entered in 'location') exists */ |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
68 | gboolean dirsonly; /* Show only directories */ |
|
15986
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
69 | gboolean multiselect; |
|
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
70 | GList *tags; /* List of tagged files when multiselect is set */ |
|
16049
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
71 | |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
72 | gboolean (*read_fn)(const char *path, GList **files, GError **error); |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
73 | }; |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
74 | |
|
15986
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
75 | struct _GntFileSelClass |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
76 | { |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
77 | GntWindowClass parent; |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
78 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
79 | void (*file_selected)(GntFileSel *sel, const char *path, const char *filename); |
|
35447
5a8d59fd6c2e
Add /*< private >*/ for all padding members in libgnt
Ankit Vani <a@nevitus.org>
parents:
35446
diff
changeset
|
80 | |
|
5a8d59fd6c2e
Add /*< private >*/ for all padding members in libgnt
Ankit Vani <a@nevitus.org>
parents:
35446
diff
changeset
|
81 | /*< private >*/ |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
82 | void (*gnt_reserved1)(void); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
83 | void (*gnt_reserved2)(void); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
84 | void (*gnt_reserved3)(void); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
85 | void (*gnt_reserved4)(void); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
86 | }; |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
87 | |
|
32206
a2c62b07ae5a
Please correct me if I'm wrong, but I don't think we gain anything
Mark Doliner <markdoliner@pidgin.im>
parents:
20293
diff
changeset
|
88 | typedef enum |
|
16049
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
89 | { |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
90 | GNT_FILE_REGULAR, |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
91 | GNT_FILE_DIR |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
92 | } GntFileType; |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
93 | |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
94 | struct _GntFile |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
95 | { |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
96 | char *fullpath; |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
97 | char *basename; |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
98 | GntFileType type; |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
99 | unsigned long size; |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
100 | }; |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
101 | |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
102 | G_BEGIN_DECLS |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
103 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
104 | /** |
|
35477
5036e4cd8a46
Update doc labels for renamed functions
Ankit Vani <a@nevitus.org>
parents:
35475
diff
changeset
|
105 | * gnt_file_sel_get_type: |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
106 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
107 | * Returns: GType for GntFileSel. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
108 | */ |
|
35379
ea1a0327001e
Rename _get_gtype() functions in libgnt to _get_type()
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
109 | GType gnt_file_sel_get_type(void); |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
110 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
111 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
112 | * gnt_file_sel_new: |
|
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
113 | * |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
114 | * Create a new file selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
115 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
116 | * Returns: The newly created file selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
117 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
118 | GntWidget * gnt_file_sel_new(void); |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
119 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
120 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
121 | * gnt_file_sel_set_current_location: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
122 | * @sel: The file selector. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
123 | * @path: The current path of the selector. |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
124 | * |
|
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
125 | * Set the current location of the file selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
126 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
127 | * Returns: %TRUE if the current location was successfully changed, %FALSE otherwise. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
128 | */ |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
129 | gboolean gnt_file_sel_set_current_location(GntFileSel *sel, const char *path); |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
130 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
131 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
132 | * gnt_file_sel_set_dirs_only: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
133 | * @sel: The file selector. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
134 | * @dirs: %TRUE if only directories can be selected, %FALSE if files |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
135 | * can also be selected. |
|
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
136 | * |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
137 | * Set wheter to only allow selecting directories. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
138 | */ |
|
15911
942565fe33f0
Directory only selection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15902
diff
changeset
|
139 | void gnt_file_sel_set_dirs_only(GntFileSel *sel, gboolean dirs); |
|
942565fe33f0
Directory only selection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15902
diff
changeset
|
140 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
141 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
142 | * gnt_file_sel_get_dirs_only: |
|
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
143 | * @sel: The file selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
144 | * |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
145 | * Check whether the file selector allows only selecting directories. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
146 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
147 | * Returns: %TRUE if only directories can be selected. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
148 | */ |
|
15911
942565fe33f0
Directory only selection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15902
diff
changeset
|
149 | gboolean gnt_file_sel_get_dirs_only(GntFileSel *sel); |
|
942565fe33f0
Directory only selection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15902
diff
changeset
|
150 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
151 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
152 | * gnt_file_sel_set_must_exist: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
153 | * @sel: The file selector. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
154 | * @must: %TRUE if the selected file must exist. |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
155 | * |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
156 | * Set whether a selected file must exist. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
157 | */ |
|
15912
7401338df45b
Use the file selector for request-file.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15911
diff
changeset
|
158 | void gnt_file_sel_set_must_exist(GntFileSel *sel, gboolean must); |
|
7401338df45b
Use the file selector for request-file.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15911
diff
changeset
|
159 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
160 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
161 | * gnt_file_sel_get_must_exist: |
|
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
162 | * @sel: The file selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
163 | * |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
164 | * Check whether the selector allows selecting non-existent files. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
165 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
166 | * Returns: %TRUE if the selected file must exist, %FALSE if a non-existent |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
167 | * file can be selected. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
168 | */ |
|
15912
7401338df45b
Use the file selector for request-file.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15911
diff
changeset
|
169 | gboolean gnt_file_sel_get_must_exist(GntFileSel *sel); |
|
7401338df45b
Use the file selector for request-file.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15911
diff
changeset
|
170 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
171 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
172 | * gnt_file_sel_get_selected_file: |
|
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
173 | * @sel: The file selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
174 | * |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
175 | * Get the selected file in the selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
176 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
177 | * Returns: The path of the selected file. The caller should g_free the returned |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
178 | * string. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
179 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
180 | char * gnt_file_sel_get_selected_file(GntFileSel *sel); |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
181 | |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
182 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
183 | * gnt_file_sel_get_selected_multi_files: |
|
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
184 | * @sel: The file selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
185 | * |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
186 | * Get the list of selected files in the selector. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
187 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
188 | * Returns: A list of paths for the selected files. The caller must g_free the |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
189 | * contents of the list, and g_list_free the list. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
190 | */ |
|
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
191 | GList * gnt_file_sel_get_selected_multi_files(GntFileSel *sel); |
|
15986
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
192 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
193 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
194 | * gnt_file_sel_set_multi_select: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
195 | * @sel: The file selector. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
196 | * @set: %TRUE if selecting multiple files should be allowed. |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
197 | * |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
198 | * Allow selecting multiple files. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
199 | */ |
|
15986
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
200 | void gnt_file_sel_set_multi_select(GntFileSel *sel, gboolean set); |
|
49c0e6c8c116
Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15985
diff
changeset
|
201 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
202 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
203 | * gnt_file_sel_set_suggested_filename: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
204 | * @sel: The file selector. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
205 | * @suggest: The suggested filename. |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
206 | * |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
207 | * Set the suggested file to have selected at startup. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
208 | */ |
| 16000 | 209 | void gnt_file_sel_set_suggested_filename(GntFileSel *sel, const char *suggest); |
| 210 | ||
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
211 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
212 | * gnt_file_sel_set_read_fn: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
213 | * @sel: The file selector. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
214 | * @read_fn: The custom read function. |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
215 | * |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
216 | * Set custom functions to read the names of files. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
217 | */ |
|
16049
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
218 | void gnt_file_sel_set_read_fn(GntFileSel *sel, gboolean (*read_fn)(const char *path, GList **files, GError **error)); |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
219 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
220 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
221 | * gnt_file_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
222 | * @name: The name of the file. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
223 | * @size: The size of the file. |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
224 | * |
|
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
225 | * Create a new GntFile. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
226 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
227 | * Returns: The newly created GntFile. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
228 | */ |
|
16049
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
229 | GntFile* gnt_file_new(const char *name, unsigned long size); |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
230 | |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
231 | /** |
|
35408
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
232 | * gnt_file_new_dir: |
|
5f7ccec14f33
Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
233 | * @name: The name of the directory. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
234 | * |
|
20293
81d324f460bd
applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19859
diff
changeset
|
235 | * Create a new GntFile for a directory. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
236 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32206
diff
changeset
|
237 | * Returns: The newly created GntFile. |
|
17586
5beb8d987e84
applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents:
16049
diff
changeset
|
238 | */ |
|
16049
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
239 | GntFile* gnt_file_new_dir(const char *name); |
|
0118c8161389
Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
16000
diff
changeset
|
240 | |
|
15902
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
241 | G_END_DECLS |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
242 | |
|
b2dad43782a1
File selector dialog. Still in an experimental state. When properly complete, this can be used for file/folder-request etc.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
243 | #endif /* GNT_FILE_SEL_H */ |
|
15987
71d668c3d56d
merge of 'e4c15762aafac1e097402a9bca2e7acfad7ff589'
Sadrul Habib Chowdhury <sadrul@pidgin.im>
diff
changeset
|
244 |