- May 10, 2009
-
-
Jannis Pohlmann authored
Also add garcon-config.c.
-
Jannis Pohlmann authored
-
Jannis Pohlmann authored
This commit renames gdesktop to garcon. It also improves the API docs and adds Travis to the AUTHORS file. A few things still might be broken due to the rename.
-
- May 07, 2009
-
-
Jannis Pohlmann authored
-
Jannis Pohlmann authored
_GDesktopMenuClass into the header file in order for GObject-introspection to work.
-
Jannis Pohlmann authored
* gdesktopmenu/Makefile.am, gdesktopmenu/gdesktopmenu.{c,h}, gdesktopmenu/gdesktopmenumain.{c,h}: Move init/shutdown code into gdesktopmenumain.{c,h}.
-
Jannis Pohlmann authored
to 1 (not the libtool one).
-
Jannis Pohlmann authored
again though.
-
- May 03, 2009
-
-
Jannis Pohlmann authored
libxfce4menu/xfce-menu-directory.{c,h}, libxfce4menu/xfce-menu-element.{c,h}, libxfce4menu/xfce-menu-item.{c,h}, libxfce4menu/xfce-menu-separator.c, libxfce4menu/xfce-menu.c: Add xfce_menu_element_get_no_display() and xfce_menu_element_get_visible_in_environment() to the XfceMenuElement interface. Implement this in XfceMenu, XfceMenuDirectory, XfceMenuItem and XfceMenuSeparator.
-
Jannis Pohlmann authored
libxfce4menu/xfce-menu-element.{c,h}, libxfce4menu/xfce-menu-item.c, libxfce4menu/xfce-menu-separator.c: Add new function xfce_menu_element_get_comment() to the XfceMenuElement interface and implement it in XfceMenu, XfceMenuItem and XfceMenuSeparator.
-
- Apr 04, 2009
-
-
Jannis Pohlmann authored
* docs/reference: Update API docs. * libxfce4menu/xfce-menu-directory.{c,h}, libxfce4menu/xfce-menu-element.{c,h}, libxfce4menu/xfce-menu-item.c, libxfce4menu/xfce-menu-separator.c, libxfce4menu/xfce-menu.c: Add xfce_menu_element_get_visible() to XfceMenuElement. The XfceMenuSeparator implementation always returns TRUE while the XfceMenuItem implementation checks the Hidden/OnlyShowIn/NotShowIn values of the corresponding desktop entry. XfceMenu checks the Hidden/OnlyShowIn/NotShowIn values of its XfceMenuDirectory as well as whether there are any visible child elements. Thanks to Travis Watkins for the patch. * tests/test-display-menu.c, tests/test-menu-spec.c: Update tests to reflect the latest API changes. Thanks to Travis for updating test-display-menu.c.
-
- Mar 15, 2009
-
-
Jannis Pohlmann authored
-
Jannis Pohlmann authored
* libxfce4menu/libxfce4menu.c: Set path pointer to NULL after freeing it to avoid random data in it. * libxfce4menu/xfce-menu-merger.c: Prepend a default layout element to the root menu so that the root menu and its children have a layout to use as a fallback. Remove empty layout elements so that we can fallback to the default layout. * libxfce4menu/xfce-menu-node.{c,h}: Add new function xfce_menu_node_tree_get_child_node(). Add XFCE_MENU_NODE_TYPE_DEFAULT_LAYOUT to the XfceMenuNodeType enum. * libxfce4menu/xfce-menu-parser.c: Parse <DefaultLayout> elements. Attributes are currently ignored. * libxfce4menu/xfce-menu.c: Properly look up the right layout or default layout in xfce_menu_get_elements(). * tests/test-display-menu.c, tests/test-menu-spec.c: Improve error messages. * POTFILES.in: Remove deleted file xfce-menu-layout.c.
-
Jannis Pohlmann authored
docs/reference/libxfce4menu.types, libxfce4menu/Makefile.am, libxfce4menu/libxfce4menu.h, libxfce4menu/xfce-menu.{c,h}, libxfce4menu/xfce-menu-layout.{c,h}: Remove XfceMenuLayout class. Also remove xfce_menu_get_items() and rename xfce_menu_get_layout_elements() to xfce_menu_get_elements(). Make menu layouts work again with the GNode trees we have instead of XfceMenuLayout now. * tests/test-display-menu.c, tests/test-menu-spec.c: Update tests to the latest API.
-
Jannis Pohlmann authored
* libxfce4menu/xfce-menu-parser.c: Remove break inside an if statement and thereby fix the parsing of <Layout> child elements.
-
Jannis Pohlmann authored
xfce_menu_node_tree_get_layout_merge_type().
-
Jannis Pohlmann authored
only keep the last one.
-
- Mar 14, 2009
-
-
Jannis Pohlmann authored
G_END_DECLS because it makes gobject-introspection freak out and its also a bit of a syntax error. Reported by Travis Watkins.
-
Jannis Pohlmann authored
* configure.in.in, libxfce4menu/libxfce4menu-0.1.pc.in, libxfce4menu/xfce-menu-directory.c, libxfce4menu/xfce-menu-item-cache.c, libxfce4menu/xfce-menu-item.c, libxfce4menu/xfce-menu-merger.c, libxfce4menu/xfce-menu-parser.c: Get rid of libxfce4util and related code like xfce_resource_dirs(). Use GKeyFile instead of XfceRc. A lot of this code comes from Travis Watkins <amaranth@ubuntu.com> who was kind enough to provide a patch. * docs/reference/libxfce4menu-sections.txt: Update sections. * libxfce4menu/libxfce4menu.{c,h}: Rename xfce_menu_init() and xfce_menu_shutdown() to libxfce4menu_init() and libxfce4menu_shutdown(). Add new function xfce_menu_config_lookup(). * libxfce4menu/xfce-menu.{c,h}: Use xfce_menu_config_lookup() instead of xfce_resource_lookup(). Remove xfce_menu_init() and xfce_menu_shutdown() declaration in the header file. * tdb/: Remove TDB entirely. * tests/test-display-menu.c, tests/test-menu-parser.c, tests/test-menu-spec.c: Update to new API and get rid of libxfce4util code. * POTFILES.in: Update translatable source file list. * libxfce4menu-0.1.pot: Update pot file.
-
- Mar 12, 2009
-
-
Jannis Pohlmann authored
Something is wrong with the API docs. Another try to fix them.
-
Jannis Pohlmann authored
fix broken API docs syntax and add docs for the XfceMenuMonitorVTable members.
-
- Mar 11, 2009
-
-
Jannis Pohlmann authored
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.
-
- Feb 24, 2009
-
-
Jannis Pohlmann authored
* docs/reference/: Try to get the damn docs right. * libxfce4menu/libxfce4menu.{c,h}, libxfce4menu/xfce-menu.c: Move xfce_menu_init() and xfce_menu_shutdown() into libxfce4menu.{c,h}. Fix #undef LIBXFCE4MENU_INSIDE_LIBXFCE4MENU_H. * libxfce4menu/xfce-menu-node.{c,h}: Make XfceMenuNodeType enum code private.
-
Jannis Pohlmann authored
* libxfce4menu/libxfce4menu.{c,h}, libxfce4menu/xfce-menu.c: Move xfce_menu_init() and xfce_menu_shutdown() into libxfce4menu.{c,h}. Fix #undef LIBXFCE4MENU_INSIDE_LIBXFCE4MENU_H. * libxfce4menu/xfce-menu-node.{c,h}: Make XfceMenuNodeType enum code private.
-
Jannis Pohlmann authored
-
Jannis Pohlmann authored
-
Jannis Pohlmann authored
xfce_menu_node_type_get_type().
-
Jannis Pohlmann authored
* libxfce4menu/xfce-menu-move.{c,h}: Remove unused source files.
-
Jannis Pohlmann authored
ones.
-
Jannis Pohlmann authored
GIO/GFile utility functions.
-
Jannis Pohlmann authored
* TODO: Create a TODO list. * configure.in.in, Makefile.am, tdb/: Remove TDB entirely. * libxfce4menu/libxfce4menu.h: Clean up. * libxfce4menu/xfce-menu-and-rules.{c,h}, libxfce4menu/xfce-menu-not-rules.{c,h}, libxfce4menu/xfce-menu-or-rules.{c,h}, libxfce4menu/xfce-menu-standard-rules.{c,h}, libxfce4menu/xfce-menu-rules.{c,h}: Remove all the XfceMenu*Rules classes. Replace them with one very simple XfceMenuNode function. * libxfce4menu/xfce-menu-directory.{c,h}: Replace the filename string property with a GFile file property. Replace xfce_menu_directory_get_filename() with xfce_menu_directory_get_file() and remove xfce_menu_directory_set_filename(). Fix typos in the signal installation code. * libxfce4menu/xfce-menu-item-cache.c: Remove all TDB related code. Avoid memory leaks when creating new items (same patch as went into the old trunk a while ago, bug #3812). * libxfce4menu/xfce-menu-item-pool.{c,h}: Update xfce_menu_item_pool_apply_exclude_rule() and xfce_menu_item_pool_filter_exclude() to use a GNode instead of an XfceMenuRuleStandardRules. * libxfce4menu/xfce-menu-item.{c,h}: Accept URIs as input to xfce_menu_item_new() and convert them to paths using GFile. * libxfce4menu/xfce-menu-merger.{c,h}: Implement the missing merging and moving code. Fix a lot of bugs in the code. Never access XfceMenuNodes directly, always use xfce_menu_node_tree_*() functions. * libxfce4menu/xfce-menu-node.{c,h}: Add more xfce_menu_node_tree*() functions. Simplify the code. Add support for matching Include/Exclude/And/Or/etc. rules against XfceMenuItems. * libxfce4menu/xfce-menu-parser.{c,h}: Minor cleanups. * libxfce4menu/xfce-menu.{c,h}: Change the first parameter of xfce_menu_new() to GFile. Remove all the parsing code. Use XfceMenuParser and XfceMenuMerger in xfce_menu_load(). Update all the menu loading code to use GNode DOM trees. Replace the filename property with a GFile file property. Still waiting to be implemented again is the layout stuff. Remove functions like xfce_menu_get_directory_dirs() which were not meant for public use anyway. * tests/test-display-menu.c, tests/test-menu-parser.c, tests/test-menu-spec.c: Update to the new API. Cleanups.
-
- Feb 22, 2009
-
-
Jannis Pohlmann authored
on GIO 2.14 as well. * libxfce4menu/Makefile.am: Add new source and header files. * libxfce4menu/libxfce4menu.h: Add new header files. * libxfce4menu/xfce-menu-node.{c,h}: Add new class XfceMenuNode which holds the information for one element in the menu DOM tree, e.g. <MergeFile>, <Name> or <Menu> * libxfce4menu/xfce-menu-tree-provider.{c,h}: Add new interface XfceMenuTreeProvider for classes which hold a GNode DOM representation for .menu files. * libxfce4menu/xfce-menu-parser.{c,h}: Add new parser for .menu XML files. It builds a GNode DOM representation for the XML data. Each GNode in the tree (except for the menu nodes) contains one XfceMenuNode for the XML element information. The parser implements XfceMenuTreeProvider. * libxfce4menu/xfce-menu-merger.{c,h}: Add new class XfceMenuMerger which takes the DOM tree from the parser or any other XfceMenuTreeProvider and resolves duplicates, relative paths and, most importantly, merges and deletes menus according to the information in the DOM tree. It implements XfceMenuTreeProvider. It is not complete yet because it doesn't implement <Move> elements and is not capable of consolidating child menus with the same name at the moment. * tests/Makefile.am, tests/test-menu-parser.c: Add a small test program which parses a menu file using XfceMenuParser and then runs an XfceMenuMerger and prints the output of both.
-
- Feb 11, 2009
-
-
SZERVÁC Attila authored
git-svn-id: https://svn.xfce.org/svn/xfce/libxfce4menu/trunk@29477 a0aa69c2-05f4-0310-b83c-d5d913b14636
-
- Feb 08, 2009
-
-
Maximilian Schleiss authored
git-svn-id: https://svn.xfce.org/svn/xfce/libxfce4menu/trunk@29472 a0aa69c2-05f4-0310-b83c-d5d913b14636
-
- Feb 03, 2009
-
-
Jannis Pohlmann authored
git-svn-id: https://svn.xfce.org/svn/xfce/libxfce4menu/trunk@29446 a0aa69c2-05f4-0310-b83c-d5d913b14636
-
Jannis Pohlmann authored
* configure.in.in: Post-release version bump. * libxfce4mixer/xfce-menu.c: Fix crash when reading invalid menu files with characters outside the root <Menu> element. Of course this even works with documents which have no <Menu> element at all. git-svn-id: https://svn.xfce.org/svn/xfce/libxfce4menu/trunk@29445 a0aa69c2-05f4-0310-b83c-d5d913b14636
-
Maximilian Schleiss authored
git-svn-id: https://svn.xfce.org/svn/xfce/libxfce4menu/trunk@29443 a0aa69c2-05f4-0310-b83c-d5d913b14636
-
- Jan 31, 2009
-
-
Eren Turkay authored
git-svn-id: https://svn.xfce.org/svn/xfce/libxfce4menu/trunk@29417 a0aa69c2-05f4-0310-b83c-d5d913b14636
-
- Jan 26, 2009
-
-
Maximilian Schleiss authored
git-svn-id: https://svn.xfce.org/svn/xfce/libxfce4menu/trunk@29394 a0aa69c2-05f4-0310-b83c-d5d913b14636
-
- Jan 25, 2009
-
-
Jari Rahkonen authored
git-svn-id: https://svn.xfce.org/svn/xfce/libxfce4menu/trunk@29336 a0aa69c2-05f4-0310-b83c-d5d913b14636
-