2 * By Tony Houghton, <h@realh.co.uk>.
5 #ifndef XXDGAUTOSTART_H
6 #define XXDGAUTOSTART_H
10 #include "xdgautostart.h"
12 /* Extra DesktopEntry functionality for the capplet */
14 void xdesktop_entry_read_name_from_keyfile(DesktopEntry
*);
16 /* Doesn't close keyfile after loading */
17 DesktopEntry
*xdesktop_entry_new(const char *pathname
, const char *basename
,
20 gboolean
xdesktop_entry_get_only_in_rox(DesktopEntry
*);
22 gboolean
xdesktop_entry_can_set_only_in_rox(DesktopEntry
*);
24 inline static gboolean
xdesktop_entry_can_set_start_in_rox(DesktopEntry
*xde
)
26 return !xdesktop_entry_get_only_in_rox(xde
);
29 void xdesktop_entry_set_only_in_rox(DesktopEntry
*xde
, gboolean state
);
31 void xdesktop_entry_set_start_in_rox(DesktopEntry
*xde
, gboolean state
);
33 void xdesktop_entry_save(DesktopEntry
*);
35 /* Chooses a suitable filename, avoiding duplicates, and fills in the basename,
36 * pathname and savable members. If leafname is NULL the filename is based on
37 * the entry's name, otherwise on leafname */
38 void xdesktop_entry_filenames_from_name(DesktopEntry
*, const char *leafname
);
40 #endif /* XXDGAUTOSTART_H */