Reading name from desktop entry file is now done by desktop_entry_read_keyfile.
[AutoStart.git] / src / xxdgautostart.h
blob8452870a726eb3d1cef5184e98e3c15080cacad9
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 /* Doesn't close keyfile after loading */
15 DesktopEntry *xdesktop_entry_new(const char *pathname, const char *basename,
16 gboolean savable);
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 */