From 25a40b9c02fcddeb5921e0346114a901005bc5fc Mon Sep 17 00:00:00 2001 From: Denis Washington Date: Tue, 6 Feb 2007 16:11:13 +0000 Subject: [PATCH] New files. Needed to fix bug #402797. 2007-02-06 Denis Washington * shell/gnomecc.menu: * shell/gnomecc.directory.in: New files. Needed to fix bug #402797. * shell/control-center.c: Use gnomecc.menu instead of settings.menu. * shell/Makefile.am: Add rules for gnomecc.directory.in. * po/POTFILES.in: Add gnomecc.directory.in. svn path=/trunk/; revision=7251 --- ChangeLog | 10 ++++ po/POTFILES.in | 1 + shell/Makefile.am | 12 +++- shell/control-center.c | 2 +- shell/gnomecc.directory.in | 5 ++ shell/gnomecc.menu | 120 +++++++++++++++++++++++++++++++++++++ 6 files changed, 147 insertions(+), 3 deletions(-) create mode 100644 shell/gnomecc.directory.in create mode 100644 shell/gnomecc.menu diff --git a/ChangeLog b/ChangeLog index 4fb04fa97..d296e11de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2007-02-06 Denis Washington + + * shell/gnomecc.menu: + * shell/gnomecc.directory.in: New files. Needed to fix bug #402797. + + * shell/control-center.c: Use gnomecc.menu instead of settings.menu. + + * shell/Makefile.am: Add rules for gnomecc.directory.in. + * po/POTFILES.in: Add gnomecc.directory.in. + 2007-02-04 Jens Granseuer * configure.in: up GTK+ requirement to 2.10 (fixes #358106) diff --git a/po/POTFILES.in b/po/POTFILES.in index be0fc1a26..035742b33 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -98,6 +98,7 @@ schemas/apps_gnome_settings_daemon_screensaver.schemas.in shell/control-center.c shell/control-center.schemas.in shell/gnomecc.desktop.in.in +shell/gnomecc.directory.in typing-break/drw-break-window.c typing-break/drwright.c typing-break/main.c diff --git a/shell/Makefile.am b/shell/Makefile.am index 859788b32..52da5ab74 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -19,6 +19,11 @@ sys_in_files = gnomecc.desktop.in sys_DATA = $(sys_in_files:.desktop.in=.desktop) @INTLTOOL_DESKTOP_RULE@ +directorydir = $(datadir)/desktop-directories +directory_in_files = gnomecc.directory.in +directory_DATA = $(directory_in_files:.directory.in=.directory) +@INTLTOOL_DIRECTORY_RULE@ + schemasdir = @GCONF_SCHEMA_FILE_DIR@ schemas_DATA = control-center.schemas @INTLTOOL_SCHEMAS_RULE@ @@ -32,6 +37,9 @@ if GCONF_SCHEMAS_INSTALL fi endif -EXTRA_DIST = gnomecc.desktop.in.in $(schemas_DATA).in +menudir = $(sysconfdir)/xdg/menus +menu_DATA = gnomecc.menu -DISTCLEANFILES = gnomecc.desktop gnomecc.desktop.in $(schemas_DATA) +EXTRA_DIST = gnomecc.desktop.in.in gnomecc.directory.in gnomecc.menu $(schemas_DATA).in + +DISTCLEANFILES = gnomecc.desktop gnomecc.desktop.in gnomecc.directory $(schemas_DATA) diff --git a/shell/control-center.c b/shell/control-center.c index 8c5571cdb..d96f48012 100644 --- a/shell/control-center.c +++ b/shell/control-center.c @@ -151,7 +151,7 @@ main (int argc, char *argv[]) exit (1); } - app_data = appshelldata_new ("preferences.menu", NULL, CONTROL_CENTER_PREFIX, + app_data = appshelldata_new ("gnomecc.menu", NULL, CONTROL_CENTER_PREFIX, GTK_ICON_SIZE_DIALOG, FALSE, TRUE); generate_categories (app_data); diff --git a/shell/gnomecc.directory.in b/shell/gnomecc.directory.in new file mode 100644 index 000000000..8484af2a9 --- /dev/null +++ b/shell/gnomecc.directory.in @@ -0,0 +1,5 @@ +[Desktop Entry] +_Name=Control Center +Icon=gnome-settings +Type=Directory +Encoding=UTF-8 diff --git a/shell/gnomecc.menu b/shell/gnomecc.menu new file mode 100644 index 000000000..c5b873c41 --- /dev/null +++ b/shell/gnomecc.menu @@ -0,0 +1,120 @@ + + + + Control Center + gnomecc.directory + + + + + + + + + + + Personal + Look and Feel + Internet and Network + Hardware + System + + + + + + + Settings + + + X-GNOME-PersonalSettings + DesktopSettings + X-GNOME-NetworkSettings + HardwareSettings + X-GNOME-SystemSettings + System + + + + + + + + gnomecc.desktop + + + + + Personal + Personal.directory + + + Settings + X-GNOME-PersonalSettings + + + + + + + Look and Feel + LookAndFeel.directory + + + Settings + DesktopSettings + + + + + + + Internet and Network + InternetAndNetwork.directory + + + Settings + X-GNOME-NetworkSettings + + + + + + + Hardware + Hardware.directory + + + Settings + HardwareSettings + + + + + + + System + System.directory + + + Settings + + X-GNOME-SystemSettings + + System + + + X-GNOME-PersonalSettings + DesktopSettings + HardwareSettings + X-GNOME-NetworkSettings + + + + + + + + +