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 /* Doesn't close keyfile after loading */
15 DesktopEntry
*xdesktop_entry_new(const char *pathname
, const char *basename
,
18 gboolean
xdesktop_entry_get_only_in_rox(DesktopEntry
*);
20 gboolean
xdesktop_entry_can_set_only_in_rox(DesktopEntry
*);
22 inline static gboolean
xdesktop_entry_can_set_start_in_rox(DesktopEntry
*xde
)
24 return !xdesktop_entry_get_only_in_rox(xde
);
27 void xdesktop_entry_set_only_in_rox(DesktopEntry
*xde
, gboolean state
);
29 void xdesktop_entry_set_start_in_rox(DesktopEntry
*xde
, gboolean state
);
31 void xdesktop_entry_save(DesktopEntry
*);
33 /* Chooses a suitable filename, avoiding duplicates, and fills in the basename,
34 * pathname and savable members. If leafname is NULL the filename is based on
35 * the entry's name, otherwise on leafname */
36 void xdesktop_entry_filenames_from_name(DesktopEntry
*, const char *leafname
);
38 #endif /* XXDGAUTOSTART_H */