finch/libgnt/gntfilesel.h

Fri, 27 Apr 2018 07:02:15 -0400

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Fri, 27 Apr 2018 07:02:15 -0400
changeset 38986
08b0821ce48b
parent 37118
5bbf6b8c30fd
permissions
-rw-r--r--

Move gnt version information into libgnt meson.build.

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 */
35487
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35477
diff changeset
22
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35477
diff changeset
23 #ifndef GNT_FILE_SEL_H
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35477
diff changeset
24 #define GNT_FILE_SEL_H
35446
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
25 /**
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
26 * SECTION:gntfilesel
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
27 * @section_id: libgnt-gntfilesel
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
28 * @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
29 * @title: File Selector
c0f80955551d Add sections for libgnt and re-arrange GNT doc index
Ankit Vani <a@nevitus.org>
parents: 35408
diff changeset
30 */
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
31
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
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
35594
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
diff changeset
48 #define GNT_TYPE_FILE (gnt_file_get_type())
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
diff changeset
49
15986
49c0e6c8c116 Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15985
diff changeset
50 typedef struct _GntFileSel GntFileSel;
49c0e6c8c116 Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15985
diff changeset
51 typedef struct _GntFileSelPriv GntFileSelPriv;
49c0e6c8c116 Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15985
diff changeset
52 typedef struct _GntFileSelClass GntFileSelClass;
16049
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
53 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
54
15986
49c0e6c8c116 Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15985
diff changeset
55 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
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 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
58
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 *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
60 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
61 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
62
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 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
64 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
65
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 char *current; /* Full path of the current location */
16000
0bb1f85ebd2c fix file saving
Richard Nelson <wabz@pidgin.im>
parents: 15989
diff changeset
67 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
68 /* 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
69 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
70 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
71 gboolean multiselect;
49c0e6c8c116 Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15985
diff changeset
72 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
73
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
74 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
75 };
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
15986
49c0e6c8c116 Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15985
diff changeset
77 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
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 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
80
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
81 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
82
5a8d59fd6c2e Add /*< private >*/ for all padding members in libgnt
Ankit Vani <a@nevitus.org>
parents: 35446
diff changeset
83 /*< 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
84 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
85 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
86 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
87 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
88 };
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
89
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
90 typedef enum
16049
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
91 {
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
92 GNT_FILE_REGULAR,
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
93 GNT_FILE_DIR
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
94 } GntFileType;
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 struct _GntFile
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
97 {
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
98 char *fullpath;
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
99 char *basename;
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
100 GntFileType type;
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
101 unsigned long size;
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
102 };
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
103
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
104 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
105
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
106 /**
35477
5036e4cd8a46 Update doc labels for renamed functions
Ankit Vani <a@nevitus.org>
parents: 35475
diff changeset
107 * 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
108 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
109 * Returns: GType for GntFileSel.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
110 */
35379
ea1a0327001e Rename _get_gtype() functions in libgnt to _get_type()
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
111 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
112
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
113 /**
35594
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
diff changeset
114 * gnt_file_get_type:
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
diff changeset
115 *
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
diff changeset
116 * Returns: The #GType for the #GntFile boxed structure.
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
diff changeset
117 */
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
diff changeset
118 GType gnt_file_get_type(void);
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
diff changeset
119
f1831b0421b2 Box GntFile and GntTreeRow
Ankit Vani <a@nevitus.org>
parents: 35498
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_new:
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
122 *
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
123 * Create a new file selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
124 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
125 * Returns: The newly created file selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
126 */
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
127 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
128
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
129 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
130 * gnt_file_sel_set_current_location:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
131 * @sel: The file selector.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
132 * @path: The current path of the selector.
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
133 *
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
134 * Set the current location of the file selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
135 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
136 * 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
137 */
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
138 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
139
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
140 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
141 * gnt_file_sel_set_dirs_only:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
142 * @sel: The file selector.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
143 * @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
144 * can also be selected.
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
145 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
146 * Set wheter to only allow selecting directories.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
147 */
15911
942565fe33f0 Directory only selection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15902
diff changeset
148 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
149
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
150 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
151 * 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
152 * @sel: The file selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
153 *
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
154 * Check whether the file selector allows only selecting directories.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
155 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
156 * Returns: %TRUE if only directories can be selected.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
157 */
15911
942565fe33f0 Directory only selection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15902
diff changeset
158 gboolean gnt_file_sel_get_dirs_only(GntFileSel *sel);
942565fe33f0 Directory only selection.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15902
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_set_must_exist:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
162 * @sel: The file selector.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
163 * @must: %TRUE if the selected file must exist.
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
164 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
165 * Set whether a selected file must exist.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
166 */
15912
7401338df45b Use the file selector for request-file.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15911
diff changeset
167 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
168
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
169 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
170 * 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
171 * @sel: The file selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
172 *
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
173 * Check whether the selector allows selecting non-existent files.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
174 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
175 * 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
176 * file can be selected.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
177 */
15912
7401338df45b Use the file selector for request-file.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15911
diff changeset
178 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
179
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
180 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
181 * 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
182 * @sel: The file selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
183 *
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
184 * Get the selected file in the selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
185 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
186 * 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
187 * string.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
188 */
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
189 char * gnt_file_sel_get_selected_file(GntFileSel *sel);
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 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
192 * 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
193 * @sel: The file selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
194 *
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
195 * Get the list of selected files in the selector.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
196 *
35498
0858f6d91e32 Fix some annotation warnings in libgnt
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
197 * Returns: (transfer full) (element-type filename): A list of paths for the
0858f6d91e32 Fix some annotation warnings in libgnt
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
198 * selected files. The caller must g_free() the contents of the list,
0858f6d91e32 Fix some annotation warnings in libgnt
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
199 * and g_list_free() the list.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
200 */
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
201 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
202
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
203 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
204 * gnt_file_sel_set_multi_select:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
205 * @sel: The file selector.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
206 * @set: %TRUE if selecting multiple files should be allowed.
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
207 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
208 * Allow selecting multiple files.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
209 */
15986
49c0e6c8c116 Allow selecting multiple files from the file-select dialog.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15985
diff changeset
210 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
211
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
212 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
213 * gnt_file_sel_set_suggested_filename:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
214 * @sel: The file selector.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
215 * @suggest: The suggested filename.
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
216 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
217 * Set the suggested file to have selected at startup.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
218 */
16000
0bb1f85ebd2c fix file saving
Richard Nelson <wabz@pidgin.im>
parents: 15989
diff changeset
219 void gnt_file_sel_set_suggested_filename(GntFileSel *sel, const char *suggest);
0bb1f85ebd2c fix file saving
Richard Nelson <wabz@pidgin.im>
parents: 15989
diff changeset
220
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
221 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
222 * gnt_file_sel_set_read_fn:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
223 * @sel: The file selector.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
224 * @read_fn: The custom read function.
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
225 *
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
226 * Set custom functions to read the names of files.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
227 */
16049
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
228 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
229
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
230 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
231 * gnt_file_new:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
232 * @name: The name of the file.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
233 * @size: The size of the file.
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
234 *
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
235 * Create a new GntFile.
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(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
240
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
241 /**
35408
5f7ccec14f33 Convert docs from doxygen to gtk-doc format for gnt to gntprogressbar
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
242 * 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
243 * @name: The name of the directory.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
244 *
20293
81d324f460bd applied changes from 1f57ebe4e6d16159c74db823ecff2ec0f4c46936
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 19859
diff changeset
245 * Create a new GntFile for a directory.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
246 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32206
diff changeset
247 * Returns: The newly created GntFile.
17586
5beb8d987e84 applied changes from 016401bd409e6229fae0ab1e80d9fef9365511b3
Eric Polino <aluink@pidgin.im>
parents: 16049
diff changeset
248 */
16049
0118c8161389 Allow using different methods for reading directory entries.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 16000
diff changeset
249 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
250
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
251 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
252
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
253 #endif /* GNT_FILE_SEL_H */
15987
71d668c3d56d merge of 'e4c15762aafac1e097402a9bca2e7acfad7ff589'
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents: 15913 15986
diff changeset
254

mercurial