Nautilus path to move components into a submenu [was RE: Regarding Nautilus scripts]



Below is a patch that will move the Bonobo components menu entries in
the popup menu to a submenu, Addons.  Attached is a screenshot showing
it.

Mason Kidd
<mrkidd mrkidd com>


--- src/file-manager/fm-directory-view.c.bak	2003-06-11
14:32:58.000000000 -0700
+++ src/file-manager/fm-directory-view.c	2003-06-11
15:36:37.000000000 -0700
@@ -157,7 +157,7 @@
 #define FM_DIRECTORY_VIEW_POPUP_PATH_SCRIPTS_SEPARATOR
"/popups/selection/Open Placeholder/Scripts/After Scripts"
 #define FM_DIRECTORY_VIEW_POPUP_PATH_OPEN_WITH
"/popups/selection/Open Placeholder/Open With"
 #define FM_DIRECTORY_VIEW_POPUP_PATH_SCRIPTS
"/popups/selection/Open Placeholder/Scripts"
-#define FM_DIRECTORY_VIEW_POPUP_PATH_MIME_ACTIONS
"/popups/selection/Mime Actions"
+#define FM_DIRECTORY_VIEW_POPUP_PATH_MIME_ACTIONS
"/popups/selection/Open Placeholder/Addons/Mime Actions"
 
 #define MAX_MENU_LEVELS 5
 
@@ -3698,7 +3698,7 @@ add_bonobo_menu_ui_and_verbs (FMDirector
 
 	g_slist_free (langs_cpy);
 
-	ui_xml = g_string_append (ui_xml, "</commands><popups><popup
name=\"selection\"><placeholder name=\"Mime Actions\"><separator/>");
+	ui_xml = g_string_append (ui_xml, "</commands><popups><popup
name=\"selection\"><placeholder name=\"Open Placeholder\"><submenu
name=\"Addons\"><placeholder name=\"Mime Actions\">");
 
 	/* build the UI */
 	for (l = verb_names; l; l = l->next) {
@@ -3707,7 +3707,7 @@ add_bonobo_menu_ui_and_verbs (FMDirector
 		g_string_append_printf (ui_xml, "<menuitem name=\"%s\"
verb=\"%s\"/>", verb, verb);
 	}
 	
-	ui_xml = g_string_append (ui_xml,
"</placeholder></popup></popups></Root>");
+	ui_xml = g_string_append (ui_xml,
"</placeholder></submenu></placeholder></popup></popups></Root>");
 	ui_xml_str = g_string_free (ui_xml, FALSE);
 
 	bonobo_ui_component_set (view->details->ui, "/",
--- src/file-manager/nautilus-directory-view-ui.xml.bak	2003-06-11
15:38:45.000000000 -0700
+++ src/file-manager/nautilus-directory-view-ui.xml	2003-06-11
15:40:13.000000000 -0700
@@ -236,6 +236,12 @@
 				 <separator name="After Scripts"/>
 				 <menuitem name="Open Scripts Folder"
verb="Open Scripts Folder"/>
 			</submenu>
+			<submenu name="Addons"
+				 _label="_Addon"
+				 _tip="Use Addons"
+				 tearoff="0">
+				 <placeholder name="Mime Actions"
delimit="none"/>
+			</submenu>
 
 		</placeholder>
 		<placeholder name="File Clipboard Actions"
delimit="top">
@@ -263,7 +269,6 @@
 		<placeholder name="Icon Appearance Items" delimit="top">
 		</placeholder>
 
-		<placeholder name="Mime Actions" delimit="none"/>
                 <separator/>
 
                 <menuitem name="Properties"



> -----Original Message-----
> From: Eugenia Loli-Queru [mailto:eloli hotmail com] 
> Sent: Wednesday, June 11, 2003 11:42 AM
> To: nautilus-list gnome org; GNOME Desktop Devel List
> Subject: Re: Regarding Nautilus scripts
> 
> 
> > I wouldn't call compiling software user friendly, or covered in help
> > files.
> > Joe User installs packages using their package management 
> software. Joe
> > User does not download a source tarball, ensure the 
> required libraries
> > are installed, then build and install software.
> 
> Agreed. But you will also have to face reality and not what 
> the user/distro
> should be doing. We like it or not, most unix software today 
> comes in source
> form, not packages. Yes, the  theoretical good thing is 
> packages, but this
> is not what happens in large today. Therefore, my opinion on "keep it
> simple, at all levels [developer|user]", still stands.
> 
> Regards,
> Eugenia
> _______________________________________________
> desktop-devel-list mailing list
> desktop-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/desktop-devel-list
> 

Attachment: nautilus-screen.png
Description: nautilus-screen.png



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]