* libxfce4menu/xfce-menu-directory.{c,h}: Add function
xfce_menu_directory_equal() which compares two XfceMenuDirectory objects based on their GFile members. * libxfce4menu/xfce-menu-layout.{c,h}: Use GList instead of GSList everywhere. * libxfce4menu/xfce-menu-merger.{c,h}: Never access GNode data directly. Instead always use the xfce_menu_node_tree*() functions. * libxfce4menu/xfce-menu-node.{c,h}: Add functions xfce_menu_node_tree_get_child_nodes(), xfce_menu_node_tree_get_string_children(), xfce_menu_node_tree_get_boolean_child() and xfce_menu_node_tree_get_string_child() to collect the values of immediate children of a GNode tree. Add new functions xfce_menu_node_tree_set_string() and xfce_menu_node_tree_set_merge_file_filename() so that GNode data needs to be accessed less often. Fix assertions in a few other functions. * libxfce4menu/xfce-menu-parser.c: Fix segmentation fault due to an uninitialized GError in GIO. * libxfce4menu/xfce-menu.{c,h}: Use GList instead of GSList everywhere. Improve API docs for a few public functions. Change xfce_menu_new() again to expect a filename as the first parameter. Add a separate function xfce_menu_new_for_file() to create an XfceMenu from a GFile. Rename xfce_menu_get_root() to xfce_menu_new_applications(). Replace a lot of traversing code with the new xfce_menu_node_tree_get*() functions. * tests/test-display-menu.c, tests/test-menu-parser.c, tests/test-menu-spec.c: Update to new libxfce4menu API.
Showing
- ChangeLog 31 additions, 0 deletionsChangeLog
- docs/reference/Makefile.am 2 additions, 0 deletionsdocs/reference/Makefile.am
- docs/reference/libxfce4menu-sections.txt 10 additions, 5 deletionsdocs/reference/libxfce4menu-sections.txt
- libxfce4menu/xfce-menu-directory.c 11 additions, 0 deletionslibxfce4menu/xfce-menu-directory.c
- libxfce4menu/xfce-menu-directory.h 2 additions, 0 deletionslibxfce4menu/xfce-menu-directory.h
- libxfce4menu/xfce-menu-layout.c 12 additions, 12 deletionslibxfce4menu/xfce-menu-layout.c
- libxfce4menu/xfce-menu-layout.h 1 addition, 1 deletionlibxfce4menu/xfce-menu-layout.h
- libxfce4menu/xfce-menu-merger.c 13 additions, 13 deletionslibxfce4menu/xfce-menu-merger.c
- libxfce4menu/xfce-menu-node.c 207 additions, 5 deletionslibxfce4menu/xfce-menu-node.c
- libxfce4menu/xfce-menu-node.h 15 additions, 1 deletionlibxfce4menu/xfce-menu-node.h
- libxfce4menu/xfce-menu-parser.c 12 additions, 5 deletionslibxfce4menu/xfce-menu-parser.c
- libxfce4menu/xfce-menu.c 234 additions, 340 deletionslibxfce4menu/xfce-menu.c
- libxfce4menu/xfce-menu.h 9 additions, 15 deletionslibxfce4menu/xfce-menu.h
- tests/test-display-menu.c 8 additions, 13 deletionstests/test-display-menu.c
- tests/test-menu-parser.c 15 additions, 10 deletionstests/test-menu-parser.c
- tests/test-menu-spec.c 10 additions, 10 deletionstests/test-menu-spec.c
Loading
Please register or sign in to comment