Import gnome-main-menu-0.9.15.

The gnome-main-menu is a set of three utilities.  A gnome-panel applet
similar to the traditional main-menu but a few addtions and changes.
In particular the gnome-main-menu does not provide direct access to all
the applications on the system, but rather displays user specified
"favorites" and recently launched applications.

<snip>

This is the default GNOME menu that SUSE Linux uses.
ok jasper@
This commit is contained in:
ajacoutot 2010-10-25 17:43:15 +00:00
parent 6ce67df2b6
commit 1af791922c
7 changed files with 280 additions and 0 deletions

View File

@ -0,0 +1,51 @@
# $OpenBSD: Makefile,v 1.1.1.1 2010/10/25 17:43:15 ajacoutot Exp $
COMMENT= alternative applications/documents menu for GNOME
GNOME_PROJECT= gnome-main-menu
GNOME_VERSION= 0.9.15
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += GL ICE ORBit-2 ORBitCosNaming-2 SM X11 Xau Xcomposite
WANTLIB += Xcursor Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrandr
WANTLIB += Xrender Xxf86vm atk-1.0 c cairo crypto dbus-1 dbus-glib-1
WANTLIB += drm expat fontconfig freetype gailutil gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gthread-2.0 gtk-x11-2.0 kvm m pango-1.0 pangocairo-1.0
WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs
WANTLIB += ssl util xcb xcb-atom xcb-aux xcb-event xcb-render
WANTLIB += xcb-shm xml2 z art_lgpl_2 bonobo-2 bonobo-activation
WANTLIB += bonoboui-2 canberra croco-0.6 execinfo gnome-2
WANTLIB += gnome-desktop-2 gnome-menu gnomecanvas-2 gnomevfs-2 gtop-2.0
WANTLIB += ltdl nautilus-extension ogg panel-applet-2 popt rsvg-2 slab
WANTLIB += startup-notification-1 unique-1.0 vorbis vorbisfile
MODULES= devel/gettext \
x11/gnome \
devel/gconf2
LIB_DEPENDS= ::x11/gnome/libslab \
::x11/gnome/panel \
::x11/gnome/nautilus \
::devel/libgtop2
RUN_DEPENDS= ::x11/gnome/system-monitor \
::x11/gnome/controlcenter2
DESKTOP_FILES= Yes
MODGCONF2_SCHEMAS_DIR= gnome-main-menu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_header_iwlib_h=no
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-gtk-doc \
--enable-nautilus-extension
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (gnome/gnome-main-menu-0.9.15.tar.bz2) = tJPPBHAPk+yEzp2QxTYIDw==
RMD160 (gnome/gnome-main-menu-0.9.15.tar.bz2) = zoeoKCMLyq+ebGgEwsy/VYRg2Ts=
SHA1 (gnome/gnome-main-menu-0.9.15.tar.bz2) = xAabkU2u2d5HcgVIrKuZcc1rzfw=
SHA256 (gnome/gnome-main-menu-0.9.15.tar.bz2) = 2dcgr9Mv69JICe70fZuhdl8DAvsQjUTGXp+1aJaSHnE=
SIZE (gnome/gnome-main-menu-0.9.15.tar.bz2) = 529365

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-main-menu_etc_slab_schemas_in_in,v 1.1.1.1 2010/10/25 17:43:15 ajacoutot Exp $
From 4feca5f553e75385799b2d53a2f478cd831595ec Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@gnome.org>
Date: Mon, 28 Jun 2010 13:17:56 +0000
Subject: [main-menu] Fix typos in schema
https://bugzilla.gnome.org/show_bug.cgi?id=620269
--- main-menu/etc/slab.schemas.in.in.orig Fri May 21 12:36:44 2010
+++ main-menu/etc/slab.schemas.in.in Mon Oct 25 11:05:18 2010
@@ -152,7 +152,7 @@
<default>8</default>
<locale name="C">
<short>determines the limit of items in the file-area.</short>
- <long>determines the limit of items in the file-area. The number favorite items is not limited. This limit applies to the number of recent items, i.e. the number of recent items displayed is limited to max_total_items - the number of favorite items. If the number of favorite items exceeds max_total_items - min_recent_items than this limit is ignored.</long>
+ <long>determines the limit of items in the file-area. The number of favorite items is not limited. This limit applies to the number of recent items, i.e. the number of recent items displayed is limited to max_total_items - the number of favorite items. If the number of favorite items exceeds max_total_items - min_recent_items then this limit is ignored.</long>
</locale>
</schema>

View File

@ -0,0 +1,67 @@
$OpenBSD: patch-main-menu_src_main-menu-ui_c,v 1.1.1.1 2010/10/25 17:43:15 ajacoutot Exp $
From 6532ab1edc544ddc40e2a012500aa457b3920a4d Mon Sep 17 00:00:00 2001
From: Julian Andres Klode <jak@debian.org>
Date: Tue, 15 Jun 2010 11:38:07 +0000
Subject: [main-menu] Use gtk_widget_get_visible instead of GTK_WIDGET_VISIBLE
Use the gtk_widget_get_visible() function instead of the deprecated
GTK_WIDGET_VISIBLE macro.
--- main-menu/src/main-menu-ui.c.orig Fri May 21 12:46:08 2010
+++ main-menu/src/main-menu-ui.c Mon Oct 25 11:04:32 2010
@@ -1339,7 +1339,7 @@ update_limits (MainMenuUI *this)
priv->max_total_items = max_total_items_default;
for (i = 0; i < 2; ++i) {
- if (GTK_WIDGET_VISIBLE (sections [i]))
+ if (gtk_widget_get_visible (sections [i]))
g_object_get (
user_tables [i],
"n-rows", & n_rows, "n-columns", & n_cols, NULL);
@@ -1458,22 +1458,22 @@ set_table_section_visible (MainMenuUI *this, TileTable
gtk_widget_hide (priv->table_sections [table_id]);
if (
- GTK_WIDGET_VISIBLE (priv->table_sections [USER_APPS_TABLE]) ||
- GTK_WIDGET_VISIBLE (priv->table_sections [RCNT_APPS_TABLE])
+ gtk_widget_get_visible (priv->table_sections [USER_APPS_TABLE]) ||
+ gtk_widget_get_visible (priv->table_sections [RCNT_APPS_TABLE])
)
gtk_widget_show (priv->page_selectors [APPS_PAGE]);
else
gtk_widget_hide (priv->page_selectors [APPS_PAGE]);
if (
- GTK_WIDGET_VISIBLE (priv->table_sections [USER_DOCS_TABLE]) ||
- GTK_WIDGET_VISIBLE (priv->table_sections [RCNT_DOCS_TABLE])
+ gtk_widget_get_visible (priv->table_sections [USER_DOCS_TABLE]) ||
+ gtk_widget_get_visible (priv->table_sections [RCNT_DOCS_TABLE])
)
gtk_widget_show (priv->page_selectors [DOCS_PAGE]);
else
gtk_widget_hide (priv->page_selectors [DOCS_PAGE]);
- if (GTK_WIDGET_VISIBLE (priv->table_sections [USER_DIRS_TABLE]))
+ if (gtk_widget_get_visible (priv->table_sections [USER_DIRS_TABLE]))
gtk_widget_show (priv->page_selectors [DIRS_PAGE]);
else
gtk_widget_hide (priv->page_selectors [DIRS_PAGE]);
@@ -1887,7 +1887,7 @@ panel_button_clicked_cb (GtkButton *button, gpointer u
detector = DOUBLE_CLICK_DETECTOR (
g_object_get_data (G_OBJECT (toggle), "double-click-detector"));
- visible = GTK_WIDGET_VISIBLE (priv->slab_window);
+ visible = gtk_widget_get_visible (priv->slab_window);
if (! double_click_detector_is_double_click (detector, gtk_get_current_event_time (), TRUE)) {
if (! visible)
@@ -1895,7 +1895,7 @@ panel_button_clicked_cb (GtkButton *button, gpointer u
else
gtk_widget_hide (priv->slab_window);
- visible = GTK_WIDGET_VISIBLE (priv->slab_window);
+ visible = gtk_widget_get_visible (priv->slab_window);
}
gtk_toggle_button_set_active (priv->panel_button, visible);

View File

@ -0,0 +1,17 @@
The gnome-main-menu is a set of three utilities. A gnome-panel applet
similar to the traditional main-menu but a few addtions and changes.
In particular the gnome-main-menu does not provide direct access to all
the applications on the system, but rather displays user specified
"favorites" and recently launched applications.
Access to all the applications is made through the second of the three
utilities, the application-browser, which is a larger format application
than that the traditional main-menu which is managed by the window
manager to allow for resizing, etc.
The final utility is the gnome-control-center which is laid out exactly
as the application-browser, but providing access to all the system's
configuration utilities.
Both the application-browser and the gnome-control-center are accessible
directly from the main-menu.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2010/10/25 17:43:15 ajacoutot Exp $
lib/nautilus/extensions-2.0/libnautilus-main-menu.so

View File

@ -0,0 +1,118 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/10/25 17:43:15 ajacoutot Exp $
%%SHARED%%
@bin bin/application-browser
@bin bin/trigger-panel-run-dialog
lib/bonobo/
lib/bonobo/servers/
lib/bonobo/servers/GNOME_MainMenu.server
lib/nautilus/
lib/nautilus/extensions-2.0/
@comment lib/nautilus/extensions-2.0/libnautilus-main-menu.a
@comment lib/nautilus/extensions-2.0/libnautilus-main-menu.la
@bin libexec/main-menu
share/applications/application-browser.desktop
share/applications/gnome-screensaver-lock.desktop
share/applications/gnome-session-logout.desktop
share/applications/gnome-session-shutdown.desktop
share/applications/trigger-panel-run-dialog.desktop
share/gnome-2.0/
share/gnome-2.0/ui/
share/gnome-2.0/ui/GNOME_MainMenu_ContextMenu.xml
share/gnome-main-menu/
share/gnome-main-menu/applications.xbel
share/gnome-main-menu/documents.xbel
share/gnome-main-menu/empty.ots
share/gnome-main-menu/empty.ott
share/gnome-main-menu/places.xbel
share/gnome-main-menu/slab-button.ui
share/gnome-main-menu/slab-window.ui
share/gnome-main-menu/system-items.xbel
share/locale/af/
share/locale/af/LC_MESSAGES/
share/locale/af/LC_MESSAGES/gnome-main-menu.mo
share/locale/ar/LC_MESSAGES/gnome-main-menu.mo
share/locale/as/LC_MESSAGES/gnome-main-menu.mo
share/locale/bg/LC_MESSAGES/gnome-main-menu.mo
share/locale/bn/LC_MESSAGES/gnome-main-menu.mo
share/locale/bn_IN/LC_MESSAGES/gnome-main-menu.mo
share/locale/br/
share/locale/br/LC_MESSAGES/
share/locale/br/LC_MESSAGES/gnome-main-menu.mo
share/locale/bs/LC_MESSAGES/gnome-main-menu.mo
share/locale/ca/LC_MESSAGES/gnome-main-menu.mo
share/locale/cs/LC_MESSAGES/gnome-main-menu.mo
share/locale/cy/LC_MESSAGES/gnome-main-menu.mo
share/locale/da/LC_MESSAGES/gnome-main-menu.mo
share/locale/de/LC_MESSAGES/gnome-main-menu.mo
share/locale/dz/LC_MESSAGES/gnome-main-menu.mo
share/locale/el/LC_MESSAGES/gnome-main-menu.mo
share/locale/en_CA/LC_MESSAGES/gnome-main-menu.mo
share/locale/en_GB/LC_MESSAGES/gnome-main-menu.mo
share/locale/en_US/
share/locale/en_US/LC_MESSAGES/
share/locale/en_US/LC_MESSAGES/gnome-main-menu.mo
share/locale/es/LC_MESSAGES/gnome-main-menu.mo
share/locale/et/LC_MESSAGES/gnome-main-menu.mo
share/locale/eu/LC_MESSAGES/gnome-main-menu.mo
share/locale/fi/LC_MESSAGES/gnome-main-menu.mo
share/locale/fr/LC_MESSAGES/gnome-main-menu.mo
share/locale/gl/LC_MESSAGES/gnome-main-menu.mo
share/locale/gu/LC_MESSAGES/gnome-main-menu.mo
share/locale/he/LC_MESSAGES/gnome-main-menu.mo
share/locale/hi/LC_MESSAGES/gnome-main-menu.mo
share/locale/hr/LC_MESSAGES/gnome-main-menu.mo
share/locale/hu/LC_MESSAGES/gnome-main-menu.mo
share/locale/id/LC_MESSAGES/gnome-main-menu.mo
share/locale/it/LC_MESSAGES/gnome-main-menu.mo
share/locale/ja/LC_MESSAGES/gnome-main-menu.mo
share/locale/km/
share/locale/km/LC_MESSAGES/
share/locale/km/LC_MESSAGES/gnome-main-menu.mo
share/locale/kn/LC_MESSAGES/gnome-main-menu.mo
share/locale/ko/LC_MESSAGES/gnome-main-menu.mo
share/locale/lt/LC_MESSAGES/gnome-main-menu.mo
share/locale/lv/LC_MESSAGES/gnome-main-menu.mo
share/locale/ml/LC_MESSAGES/gnome-main-menu.mo
share/locale/mr/LC_MESSAGES/gnome-main-menu.mo
share/locale/nb/LC_MESSAGES/gnome-main-menu.mo
share/locale/nds/
share/locale/nds/LC_MESSAGES/
share/locale/nds/LC_MESSAGES/gnome-main-menu.mo
share/locale/nl/LC_MESSAGES/gnome-main-menu.mo
share/locale/oc/LC_MESSAGES/gnome-main-menu.mo
share/locale/or/LC_MESSAGES/gnome-main-menu.mo
share/locale/pa/LC_MESSAGES/gnome-main-menu.mo
share/locale/pl/LC_MESSAGES/gnome-main-menu.mo
share/locale/ps/
share/locale/ps/LC_MESSAGES/
share/locale/ps/LC_MESSAGES/gnome-main-menu.mo
share/locale/pt/LC_MESSAGES/gnome-main-menu.mo
share/locale/pt_BR/LC_MESSAGES/gnome-main-menu.mo
share/locale/ro/LC_MESSAGES/gnome-main-menu.mo
share/locale/ru/LC_MESSAGES/gnome-main-menu.mo
share/locale/sk/LC_MESSAGES/gnome-main-menu.mo
share/locale/sl/LC_MESSAGES/gnome-main-menu.mo
share/locale/sr/LC_MESSAGES/gnome-main-menu.mo
share/locale/sv/LC_MESSAGES/gnome-main-menu.mo
share/locale/ta/LC_MESSAGES/gnome-main-menu.mo
share/locale/te/LC_MESSAGES/gnome-main-menu.mo
share/locale/th/LC_MESSAGES/gnome-main-menu.mo
share/locale/tr/LC_MESSAGES/gnome-main-menu.mo
share/locale/uk/LC_MESSAGES/gnome-main-menu.mo
share/locale/vi/LC_MESSAGES/gnome-main-menu.mo
share/locale/wa/
share/locale/wa/LC_MESSAGES/
share/locale/wa/LC_MESSAGES/gnome-main-menu.mo
share/locale/xh/LC_MESSAGES/gnome-main-menu.mo
share/locale/zh_CN/LC_MESSAGES/gnome-main-menu.mo
share/locale/zh_TW/LC_MESSAGES/gnome-main-menu.mo
share/locale/zu/
share/locale/zu/LC_MESSAGES/
share/locale/zu/LC_MESSAGES/gnome-main-menu.mo
@unexec GCONF_CONFIG_SOURCE=`%D/bin/gconftool-2 --get-default-source` %D/bin/gconftool-2 --makefile-uninstall-rule %D/${SCHEMAS_INSTDIR}/*.schemas > /dev/null
${SCHEMAS_INSTDIR}/
${SCHEMAS_INSTDIR}/application-browser.schemas
${SCHEMAS_INSTDIR}/slab.schemas
@exec GCONF_CONFIG_SOURCE=`%D/bin/gconftool-2 --get-default-source` %D/bin/gconftool-2 --makefile-install-rule %D/${SCHEMAS_INSTDIR}/*.schemas > /dev/null
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database