Skip to content
Snippets Groups Projects
  1. May 10, 2009
  2. May 07, 2009
  3. May 03, 2009
    • Jannis Pohlmann's avatar
      * docs/reference/libxfce4menu-sections.txt, · ca38e06a
      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.
      ca38e06a
    • Jannis Pohlmann's avatar
      * docs/reference/libxfce4menu-sections.txt, libxfce4menu/xfce-menu.c, · c5bda99f
      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.
      c5bda99f
  4. Apr 04, 2009
    • Jannis Pohlmann's avatar
      * AUTHORS: Add Travis Watkins as a contributor. · 681672a4
      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.
      681672a4
  5. Mar 15, 2009
    • Jannis Pohlmann's avatar
      * STATUS: Update STATUS file. · 1beaec37
      Jannis Pohlmann authored
      1beaec37
    • Jannis Pohlmann's avatar
      * docs/reference/: Update API docs. · 8e9a5a83
      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.
      8e9a5a83
    • Jannis Pohlmann's avatar
      * docs/reference/libxfce4menu-sections.txt, · 57ea0ddf
      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.
      57ea0ddf
    • Jannis Pohlmann's avatar
      * libxfce4menu/xfce-menu-node.c: Really fix the typo this time. · 6370bb67
      Jannis Pohlmann authored
      	* libxfce4menu/xfce-menu-parser.c: Remove break inside an if statement
      	  and thereby fix the parsing of <Layout> child elements.
      6370bb67
    • Jannis Pohlmann's avatar
      * libxfce4menu/xfce-menu-node.c: Fix type macro typo in · a45b9bc6
      Jannis Pohlmann authored
      	  xfce_menu_node_tree_get_layout_merge_type().
      a45b9bc6
    • Jannis Pohlmann's avatar
      * libxfce4menu/xfce-menu-merger.c: Remove duplicate layout nodes and · e9606e53
      Jannis Pohlmann authored
      	  only keep the last one.
      e9606e53
  6. Mar 14, 2009
    • Jannis Pohlmann's avatar
      * libxfce4menu/*.h: Remove trailing semicolons after G_BEGIN_DECLS and · 63a8fc24
      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.
      63a8fc24
    • Jannis Pohlmann's avatar
      * INSTALL: Update the install information. · 0baa89ae
      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.
      0baa89ae
  7. Mar 12, 2009
  8. Mar 11, 2009
    • Jannis Pohlmann's avatar
      * libxfce4menu/xfce-menu-directory.{c,h}: Add function · e27803e7
      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.
      e27803e7
  9. Feb 24, 2009
    • Jannis Pohlmann's avatar
      * libxfce4menu/libxfce4menu.c: Add missing source file. · 16f4b0a5
      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.
      16f4b0a5
    • Jannis Pohlmann's avatar
      * docs/reference/: Try to get the damn docs right. · ddc429f7
      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.
      ddc429f7
    • Jannis Pohlmann's avatar
      a59ae46f
    • Jannis Pohlmann's avatar
      * docs/reference/: Update API docs. · 68b50bdd
      Jannis Pohlmann authored
      68b50bdd
    • Jannis Pohlmann's avatar
      * libxfce4menu/xfce-menu-node.h: Add missing declaration for · b13a8f36
      Jannis Pohlmann authored
      	  xfce_menu_node_type_get_type().
      b13a8f36
    • Jannis Pohlmann's avatar
      * docs/reference/: Update API docs section and stuff. · 4efdc16b
      Jannis Pohlmann authored
      	* libxfce4menu/xfce-menu-move.{c,h}: Remove unused source files.
      4efdc16b
    • Jannis Pohlmann's avatar
    • Jannis Pohlmann's avatar
      * libxfce4menu/xfce-menu-gio.{c,h}: Add missing source files for a few · 851ebfcb
      Jannis Pohlmann authored
      	  GIO/GFile utility functions.
      851ebfcb
    • Jannis Pohlmann's avatar
      * STATUS: Big status update. · 41296e94
      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.
      41296e94
  10. Feb 22, 2009
    • Jannis Pohlmann's avatar
      * configure.in.in: Depend on GTK+ 2.12 and GLib 2.14. Add dependency · c066f3c3
      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.
      c066f3c3
  11. Feb 11, 2009
  12. Feb 08, 2009
  13. Feb 03, 2009
  14. Jan 31, 2009
  15. Jan 26, 2009
  16. Jan 25, 2009
Loading