comparison src/layout.h @ 1466:6e020d3ab168

added possibility to update existing layout window from config
author nadvornik
date Fri, 20 Mar 2009 14:36:59 +0000
parents d7a6fb7a90dd
children 01693e68707b
comparison
equal deleted inserted replaced
1465:400ecfc3d8b1 1466:6e020d3ab168
19 19
20 LayoutWindow *layout_new(FileData *dir_fd, LayoutOptions *lop); 20 LayoutWindow *layout_new(FileData *dir_fd, LayoutOptions *lop);
21 LayoutWindow *layout_new_with_geometry(FileData *dir_fd, LayoutOptions *lop, 21 LayoutWindow *layout_new_with_geometry(FileData *dir_fd, LayoutOptions *lop,
22 const gchar *geometry); 22 const gchar *geometry);
23 LayoutWindow *layout_new_from_config(const gchar **attribute_names, const gchar **attribute_values, gboolean use_commandline); 23 LayoutWindow *layout_new_from_config(const gchar **attribute_names, const gchar **attribute_values, gboolean use_commandline);
24 void layout_update_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values);
24 25
25 void layout_close(LayoutWindow *lw); 26 void layout_close(LayoutWindow *lw);
26 void layout_free(LayoutWindow *lw); 27 void layout_free(LayoutWindow *lw);
27 28
28 gboolean layout_valid(LayoutWindow **lw); 29 gboolean layout_valid(LayoutWindow **lw);
37 void layout_write_config(LayoutWindow *lw, GString *outstr, gint indent); 38 void layout_write_config(LayoutWindow *lw, GString *outstr, gint indent);
38 39
39 40
40 LayoutWindow *layout_find_by_image(ImageWindow *imd); 41 LayoutWindow *layout_find_by_image(ImageWindow *imd);
41 LayoutWindow *layout_find_by_image_fd(ImageWindow *imd); 42 LayoutWindow *layout_find_by_image_fd(ImageWindow *imd);
43 LayoutWindow *layout_find_by_layout_id(const gchar *id);
44
42 45
43 const gchar *layout_get_path(LayoutWindow *lw); 46 const gchar *layout_get_path(LayoutWindow *lw);
44 gboolean layout_set_path(LayoutWindow *lw, const gchar *path); 47 gboolean layout_set_path(LayoutWindow *lw, const gchar *path);
45 gboolean layout_set_fd(LayoutWindow *lw, FileData *fd); 48 gboolean layout_set_fd(LayoutWindow *lw, FileData *fd);
46 49