diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-03-01 14:31:17 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-03-01 14:31:17 +0800 |
commit | 8de4a5041d3a5c13478b1cc9648524e0ccd39097 (patch) | |
tree | 8d00803742afc4357298b03cb1d7d347660aa75f /x11/gnome-menus/files | |
parent | 6bfac57badbb370e857dbe711be2bb08bb10f0f8 (diff) | |
download | marcuscom-ports-8de4a5041d3a5c13478b1cc9648524e0ccd39097.tar marcuscom-ports-8de4a5041d3a5c13478b1cc9648524e0ccd39097.tar.gz marcuscom-ports-8de4a5041d3a5c13478b1cc9648524e0ccd39097.tar.bz2 marcuscom-ports-8de4a5041d3a5c13478b1cc9648524e0ccd39097.tar.lz marcuscom-ports-8de4a5041d3a5c13478b1cc9648524e0ccd39097.tar.xz marcuscom-ports-8de4a5041d3a5c13478b1cc9648524e0ccd39097.tar.zst marcuscom-ports-8de4a5041d3a5c13478b1cc9648524e0ccd39097.zip |
- Add two patches and update two to support a new port, gnome-menu-editor
- Bump PORTREVISION
Obtained From: http://bugzilla.gnome.org/show_bug.cgi?id=168616
http://bugzilla.gnome.org/show_bug.cgi?id=168526
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3755 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gnome-menus/files')
-rw-r--r-- | x11/gnome-menus/files/patch-layout::applications.menu | 38 | ||||
-rw-r--r-- | x11/gnome-menus/files/patch-layout::preferences.menu | 21 | ||||
-rw-r--r-- | x11/gnome-menus/files/patch-layout::settings.menu | 23 | ||||
-rw-r--r-- | x11/gnome-menus/files/patch-libmenu::menu-tree.c | 173 | ||||
-rw-r--r-- | x11/gnome-menus/files/patch-libmenu::menu-tree.h | 14 |
5 files changed, 249 insertions, 20 deletions
diff --git a/x11/gnome-menus/files/patch-layout::applications.menu b/x11/gnome-menus/files/patch-layout::applications.menu index 470721a15..6f8b1fb5a 100644 --- a/x11/gnome-menus/files/patch-layout::applications.menu +++ b/x11/gnome-menus/files/patch-layout::applications.menu @@ -1,6 +1,15 @@ ---- layout/applications.menu.orig Sun Feb 27 03:05:43 2005 -+++ layout/applications.menu Sun Feb 27 03:06:09 2005 -@@ -24,6 +24,12 @@ +--- layout/applications.menu.orig Fri Jan 14 14:17:53 2005 ++++ layout/applications.menu Tue Mar 1 01:28:57 2005 +@@ -15,15 +15,18 @@ + <DefaultAppDirs/> + <DefaultDirectoryDirs/> + +- <!-- Read in overrides and child menus from applications-merged/ --> +- <DefaultMergeDirs/> +- + <!-- Accessories submenu --> + <Menu> + <Name>Accessories</Name> <Directory>Accessories.directory</Directory> <Include> <And> @@ -13,7 +22,7 @@ <Category>Utility</Category> <Not> <Category>System</Category> -@@ -38,6 +44,12 @@ +@@ -38,6 +41,12 @@ <Directory>Accessibility.directory</Directory> <Include> <And> @@ -26,7 +35,7 @@ <Category>Accessibility</Category> <Not> <Category>Settings</Category> -@@ -52,6 +64,12 @@ +@@ -52,6 +61,12 @@ <Directory>Development.directory</Directory> <Include> <And> @@ -39,7 +48,7 @@ <Category>Development</Category> </And> <Filename>emacs.desktop</Filename> -@@ -64,6 +82,12 @@ +@@ -64,6 +79,12 @@ <Directory>Edutainment.directory</Directory> <Include> <And> @@ -52,7 +61,7 @@ <Category>Education</Category> </And> </Include> -@@ -75,6 +99,12 @@ +@@ -75,6 +96,12 @@ <Directory>Games.directory</Directory> <Include> <And> @@ -65,7 +74,7 @@ <Category>Game</Category> </And> </Include> -@@ -86,6 +116,12 @@ +@@ -86,6 +113,12 @@ <Directory>Graphics.directory</Directory> <Include> <And> @@ -78,7 +87,7 @@ <Category>Graphics</Category> </And> </Include> -@@ -97,6 +133,12 @@ +@@ -97,6 +130,12 @@ <Directory>Internet.directory</Directory> <Include> <And> @@ -91,7 +100,7 @@ <Category>Network</Category> </And> </Include> -@@ -108,6 +150,12 @@ +@@ -108,6 +147,12 @@ <Directory>Multimedia.directory</Directory> <Include> <And> @@ -104,7 +113,7 @@ <Category>AudioVideo</Category> </And> </Include> -@@ -119,6 +167,12 @@ +@@ -119,6 +164,12 @@ <Directory>Office.directory</Directory> <Include> <And> @@ -117,7 +126,7 @@ <Category>Office</Category> </And> </Include> -@@ -130,6 +184,12 @@ +@@ -130,6 +181,12 @@ <Directory>System-Tools.directory</Directory> <Include> <And> @@ -130,7 +139,7 @@ <Category>System</Category> <Not><Category>Settings</Category></Not> </And> -@@ -143,11 +203,204 @@ +@@ -143,11 +200,207 @@ <OnlyUnallocated/> <Include> <And> @@ -147,6 +156,9 @@ </Include> </Menu> <!-- End Other --> + ++ <!-- Read in overrides and child menus from applications-merged/ --> ++ <DefaultMergeDirs/> ++ + <!-- KDE --> + <Menu> + <Name>KDE</Name> diff --git a/x11/gnome-menus/files/patch-layout::preferences.menu b/x11/gnome-menus/files/patch-layout::preferences.menu index 64f153621..fef1dc0dc 100644 --- a/x11/gnome-menus/files/patch-layout::preferences.menu +++ b/x11/gnome-menus/files/patch-layout::preferences.menu @@ -1,6 +1,12 @@ ---- layout/preferences.menu.orig Sun Feb 27 02:57:23 2005 -+++ layout/preferences.menu Sun Feb 27 02:57:40 2005 -@@ -15,6 +15,12 @@ +--- layout/preferences.menu.orig Sat Dec 11 07:58:50 2004 ++++ layout/preferences.menu Tue Mar 1 01:28:57 2005 +@@ -9,12 +9,15 @@ + <DefaultAppDirs/> + <DefaultDirectoryDirs/> + +- <!-- Read in overrides and child menus from preferences-merged/ --> +- <DefaultMergeDirs/> +- <!-- Stuff in the toplevel --> <Include> <And> @@ -13,7 +19,7 @@ <Category>Settings</Category> <Not> <Or> -@@ -36,6 +42,12 @@ +@@ -36,10 +39,19 @@ <Directory>Settings-Accessibility.directory</Directory> <Include> <And> @@ -26,3 +32,10 @@ <Category>Settings</Category> <Category>Accessibility</Category> </And> + </Include> + </Menu> ++ ++ <!-- Read in overrides and child menus from preferences-merged/ --> ++ <DefaultMergeDirs/> + + </Menu> <!-- End Prefs --> diff --git a/x11/gnome-menus/files/patch-layout::settings.menu b/x11/gnome-menus/files/patch-layout::settings.menu index f118d5258..266678df2 100644 --- a/x11/gnome-menus/files/patch-layout::settings.menu +++ b/x11/gnome-menus/files/patch-layout::settings.menu @@ -1,6 +1,16 @@ ---- layout/settings.menu.orig Sun Feb 27 03:02:51 2005 -+++ layout/settings.menu Sun Feb 27 03:04:13 2005 -@@ -30,6 +30,12 @@ +--- layout/settings.menu.orig Wed Jan 5 20:12:16 2005 ++++ layout/settings.menu Tue Mar 1 01:28:57 2005 +@@ -15,9 +15,6 @@ + <DefaultAppDirs/> + <DefaultDirectoryDirs/> + +- <!-- Read in overrides and child menus from applications-merged/ --> +- <DefaultMergeDirs/> +- + <!-- Merge in these other files as submenus --> + <Menu> + <Name>Preferences</Name> +@@ -30,10 +27,19 @@ <Directory>System-Settings.directory</Directory> <Include> <And> @@ -13,3 +23,10 @@ <Category>Settings</Category> <Category>System</Category> </And> + </Include> + </Menu> <!-- End System Settings --> ++ ++ <!-- Read in overrides and child menus from settings-merged/ --> ++ <DefaultMergeDirs/> + + </Menu> <!-- End Applications --> diff --git a/x11/gnome-menus/files/patch-libmenu::menu-tree.c b/x11/gnome-menus/files/patch-libmenu::menu-tree.c new file mode 100644 index 000000000..9bc620214 --- /dev/null +++ b/x11/gnome-menus/files/patch-libmenu::menu-tree.c @@ -0,0 +1,173 @@ +--- libmenu/menu-tree.c.orig Tue Mar 1 01:24:07 2005 ++++ libmenu/menu-tree.c Tue Mar 1 01:24:17 2005 +@@ -67,6 +67,12 @@ + gpointer user_data; + } MenuTreeMonitor; + ++typedef struct ++{ ++ MenuTreeDirectory *directory; ++ GSList *list; ++} MenuTreeListifyForeachData; ++ + struct MenuTreeDirectory + { + MenuTreeDirectory *parent; +@@ -75,6 +81,7 @@ + char *name; + + GSList *entries; ++ GSList *excluded_entries; + GSList *subdirs; + + guint refcount : 24; +@@ -702,17 +709,15 @@ + } + } + +-GSList * +-menu_tree_directory_get_entries (MenuTreeDirectory *directory) ++static GSList * ++copy_and_ref_entry_list (GSList *list) + { + GSList *retval; + GSList *tmp; + +- g_return_val_if_fail (directory != NULL, NULL); +- + retval = NULL; + +- tmp = directory->entries; ++ tmp = list; + while (tmp != NULL) + { + retval = g_slist_prepend (retval, +@@ -725,6 +730,22 @@ + } + + GSList * ++menu_tree_directory_get_entries (MenuTreeDirectory *directory) ++{ ++ g_return_val_if_fail (directory != NULL, NULL); ++ ++ return copy_and_ref_entry_list (directory->entries); ++} ++ ++GSList * ++menu_tree_directory_get_excluded_entries (MenuTreeDirectory *directory) ++{ ++ g_return_val_if_fail (directory != NULL, NULL); ++ ++ return copy_and_ref_entry_list (directory->excluded_entries); ++} ++ ++GSList * + menu_tree_directory_get_subdirs (MenuTreeDirectory *directory) + { + GSList *retval; +@@ -891,6 +912,7 @@ + retval->name = g_strdup (name); + retval->directory_entry = NULL; + retval->entries = NULL; ++ retval->excluded_entries = NULL; + retval->subdirs = NULL; + retval->only_unallocated = FALSE; + retval->refcount = 1; +@@ -2267,16 +2289,21 @@ + } + + static void +-entries_listify_foreach (const char *desktop_file_id, +- DesktopEntry *desktop_entry, +- MenuTreeDirectory *directory) ++entries_listify_foreach (const char *desktop_file_id, ++ DesktopEntry *desktop_entry, ++ MenuTreeListifyForeachData *foreach_data) + { + MenuTreeEntry *entry; + +- entry = menu_tree_entry_new (directory, desktop_entry, desktop_file_id); ++ g_return_if_fail (foreach_data); ++ g_return_if_fail (foreach_data->directory); ++ ++ entry = menu_tree_entry_new (foreach_data->directory, ++ desktop_entry, ++ desktop_file_id); + +- directory->entries = g_slist_prepend (directory->entries, +- entry); ++ foreach_data->list = g_slist_prepend (foreach_data->list, ++ entry); + } + + static MenuTreeDirectory * +@@ -2290,11 +2317,14 @@ + MenuLayoutNode *layout_iter; + MenuTreeDirectory *directory; + DesktopEntrySet *entries; ++ DesktopEntrySet *excluded_entries; + DesktopEntrySet *allocated_set; + gboolean deleted; + gboolean only_unallocated; + GSList *tmp; + ++ MenuTreeListifyForeachData foreach_data; ++ + g_assert (menu_layout_node_get_type (layout) == MENU_LAYOUT_NODE_MENU); + g_assert (menu_layout_node_menu_get_name (layout) != NULL); + +@@ -2311,6 +2341,7 @@ + dir_dirs = menu_layout_node_menu_get_directory_dirs (layout); + + entries = desktop_entry_set_new (); ++ excluded_entries = desktop_entry_set_new (); + allocated_set = desktop_entry_set_new (); + + layout_iter = menu_layout_node_get_children (layout); +@@ -2357,6 +2388,7 @@ + if (rule_set != NULL) + { + desktop_entry_set_union (entries, rule_set); ++ desktop_entry_set_subtract (excluded_entries, rule_set); + desktop_entry_set_union (allocated_set, rule_set); + desktop_entry_set_unref (rule_set); + } +@@ -2389,6 +2421,7 @@ + if (rule_set != NULL) + { + desktop_entry_set_subtract (entries, rule_set); ++ desktop_entry_set_union (excluded_entries, rule_set); + desktop_entry_set_unref (rule_set); + } + +@@ -2488,15 +2521,28 @@ + if (deleted) + { + desktop_entry_set_unref (entries); ++ desktop_entry_set_unref (excluded_entries); + menu_tree_directory_unref (directory); + return NULL; + } + +- directory->entries = NULL; ++ foreach_data.directory = directory; ++ foreach_data.list = NULL; + desktop_entry_set_foreach (entries, + (DesktopEntrySetForeachFunc) entries_listify_foreach, +- directory); ++ &foreach_data); + desktop_entry_set_unref (entries); ++ ++ directory->entries = foreach_data.list; ++ ++ foreach_data.directory = directory; ++ foreach_data.list = NULL; ++ desktop_entry_set_foreach (excluded_entries, ++ (DesktopEntrySetForeachFunc) entries_listify_foreach, ++ &foreach_data); ++ desktop_entry_set_unref (excluded_entries); ++ ++ directory->excluded_entries = foreach_data.list; + + tmp = directory->entries; + while (tmp != NULL) diff --git a/x11/gnome-menus/files/patch-libmenu::menu-tree.h b/x11/gnome-menus/files/patch-libmenu::menu-tree.h new file mode 100644 index 000000000..e5f5ae766 --- /dev/null +++ b/x11/gnome-menus/files/patch-libmenu::menu-tree.h @@ -0,0 +1,14 @@ +--- libmenu/menu-tree.h.orig Wed Jan 12 15:23:52 2005 ++++ libmenu/menu-tree.h Tue Mar 1 01:24:17 2005 +@@ -44,8 +44,9 @@ + MenuTreeDirectory *menu_tree_get_directory_from_path (MenuTree *tree, + const char *path); + +-GSList *menu_tree_directory_get_entries (MenuTreeDirectory *directory); +-GSList *menu_tree_directory_get_subdirs (MenuTreeDirectory *directory); ++GSList *menu_tree_directory_get_entries (MenuTreeDirectory *directory); ++GSList *menu_tree_directory_get_excluded_entries (MenuTreeDirectory *directory); ++GSList *menu_tree_directory_get_subdirs (MenuTreeDirectory *directory); + + MenuTreeDirectory *menu_tree_directory_ref (MenuTreeDirectory *directory); + void menu_tree_directory_unref (MenuTreeDirectory *directory); |