Re: Migration Paths for New Modules
- From: "Travis Watkins" <alleykat gmail com>
- To: "Shaun McCance" <shaunm gnome org>
- Cc: Gnome Desktop Development List <desktop-devel-list gnome org>
- Subject: Re: Migration Paths for New Modules
- Date: Wed, 19 Jul 2006 11:37:18 -0500
On 7/15/06, Shaun McCance <shaunm gnome org> wrote:
Alacarte has probably the easiest job here,
but I want to make sure that people will get
Alacarte whenever they ask for a menu editor.
A symlink in /usr/bin is probably sufficient.
As far as I know the only place gmenu-simple-editor is exposed in the
UI is the "Edit Menus" item in the menu applet context menu. Ubuntu
has a patch (attached) that makes this menu item call alacarte if it's
installed. What else would need to be done?
--
Travis Watkins
http://www.realistanew.com
diff -Nur gnome-panel-2.14.1/gnome-panel/panel-menu-bar.c gnome-panel-2.14.1.new/gnome-panel/panel-menu-bar.c
--- gnome-panel-2.14.1/gnome-panel/panel-menu-bar.c 2006-04-14 15:31:19.000000000 +0200
+++ gnome-panel-2.14.1.new/gnome-panel/panel-menu-bar.c 2006-04-14 15:31:20.000000000 +0200
@@ -469,10 +469,19 @@
} else if (!strcmp (callback_name, "edit")) {
GError *error = NULL;
- panel_launch_desktop_file ("gmenu-simple-editor.desktop",
- "gmenu-simple-editor",
- screen,
- &error);
+ if (panel_is_program_in_path ("alacarte")) {
+ panel_launch_desktop_file ("alacarte.desktop",
+ "alacarte",
+ screen,
+ &error);
+ }
+ else {
+ panel_launch_desktop_file ("gmenu-simple-editor.desktop",
+ "gmenu-simple-editor",
+ screen,
+ &error);
+ }
+
if (error) {
panel_error_dialog (screen,
"cannot_exec_gmenu-simple-editor", TRUE,
diff -Nur gnome-panel-2.14.1/gnome-panel/panel-menu-button.c gnome-panel-2.14.1.new/gnome-panel/panel-menu-button.c
--- gnome-panel-2.14.1/gnome-panel/panel-menu-button.c 2006-04-14 15:31:19.000000000 +0200
+++ gnome-panel-2.14.1.new/gnome-panel/panel-menu-button.c 2006-04-14 15:31:20.000000000 +0200
@@ -1004,10 +1004,19 @@
} else if (!strcmp (callback_name, "edit")) {
GError *error = NULL;
- panel_launch_desktop_file ("gmenu-simple-editor.desktop",
- "gmenu-simple-editor",
- screen,
- &error);
+ if (panel_is_program_in_path ("alacarte")) {
+ panel_launch_desktop_file ("alacarte.desktop",
+ "alacarte",
+ screen,
+ &error);
+ }
+ else {
+ panel_launch_desktop_file ("gmenu-simple-editor.desktop",
+ "gmenu-simple-editor",
+ screen,
+ &error);
+ }
+
if (error) {
panel_error_dialog (screen,
"cannot_exec_gmenu-simple-editor", TRUE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]