Initial check-in to git.
[XDGStart.git] / src / xxdgautostart.h
blobe2dec0d053fc0e6a9081a8e84699844d4e03a1e0
1 /*
2 * By Tony Houghton, <h@realh.co.uk>.
3 */
5 #ifndef XXDGAUTOSTART_H
6 #define XXDGAUTOSTART_H
8 #include <gtk/gtk.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,
18 gboolean savable);
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 */