1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add gnome-main-menu, a tool to organize GNOME applications into one

easy-to-launch applet or browser application.
This commit is contained in:
Joe Marcus Clarke 2008-07-07 17:22:21 +00:00
parent 2801b01739
commit d69cc91c67
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216482
10 changed files with 353 additions and 0 deletions

View File

@ -75,6 +75,7 @@
SUBDIR += gmcal
SUBDIR += gnochm
SUBDIR += gnome-blog
SUBDIR += gnome-main-menu
SUBDIR += gnome-pim
SUBDIR += gnome-utils
SUBDIR += gnotime

View File

@ -0,0 +1,27 @@
# New ports collection makefile for: gnome-main-menu
# Date created: 06 July 2008
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gnome-main-menu
PORTVERSION= 0.9.10
CATEGORIES= deskutils gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Provides easy access to sets of GNOME applications
USE_BZIP2= yes
USE_GNOME= gnomehack gnomeprefix gnomepanel intlhack
USE_GMAKE= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
GCONF_SCHEMAS= application-browser.schemas slab.schemas
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (gnome2/gnome-main-menu-0.9.10.tar.bz2) = 0998c96746ae95740da17bed5969d935
SHA256 (gnome2/gnome-main-menu-0.9.10.tar.bz2) = 861af0beeb20298a66e67bf33de714a4c6af3dd118d480bc9d04b8086032d060
SIZE (gnome2/gnome-main-menu-0.9.10.tar.bz2) = 593999

View File

@ -0,0 +1,11 @@
--- application-browser/src/application-browser.c.orig 2008-07-06 23:02:33.000000000 -0400
+++ application-browser/src/application-browser.c 2008-07-06 23:02:50.000000000 -0400
@@ -83,7 +83,7 @@ main (int argc, char *argv[])
NewAppConfig *config = g_new0 (NewAppConfig, 1);
config->max_items = get_slab_gconf_int (NEW_APPS_MAX_ITEMS);
config->name = _("New Applications");
- AppShellData *app_data = appshelldata_new ("applications.menu", config,
+ AppShellData *app_data = appshelldata_new ("gnome-applications.menu", config,
APPLICATION_BROWSER_PREFIX, GTK_ICON_SIZE_DND, TRUE, FALSE);
generate_categories (app_data);

View File

@ -0,0 +1,85 @@
--- configure.orig 2008-07-06 22:38:32.000000000 -0400
+++ configure 2008-07-06 22:39:21.000000000 -0400
@@ -23537,12 +23537,12 @@ if test -n "$MAIN_MENU_CFLAGS"; then
pkg_cv_MAIN_MENU_CFLAGS="$MAIN_MENU_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" \$COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo \"") >&5
- ($PKG_CONFIG --exists --print-errors " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo ") 2>&5
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" \$COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo \"") >&5
+ ($PKG_CONFIG --exists --print-errors " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo ") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
- pkg_cv_MAIN_MENU_CFLAGS=`$PKG_CONFIG --cflags " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo " 2>/dev/null`
+ pkg_cv_MAIN_MENU_CFLAGS=`$PKG_CONFIG --cflags " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo " 2>/dev/null`
else
pkg_failed=yes
fi
@@ -23553,12 +23553,12 @@ if test -n "$MAIN_MENU_LIBS"; then
pkg_cv_MAIN_MENU_LIBS="$MAIN_MENU_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" \$COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo \"") >&5
- ($PKG_CONFIG --exists --print-errors " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo ") 2>&5
+ { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" \$COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo \"") >&5
+ ($PKG_CONFIG --exists --print-errors " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo ") 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
- pkg_cv_MAIN_MENU_LIBS=`$PKG_CONFIG --libs " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo " 2>/dev/null`
+ pkg_cv_MAIN_MENU_LIBS=`$PKG_CONFIG --libs " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo " 2>/dev/null`
else
pkg_failed=yes
fi
@@ -23576,14 +23576,14 @@ else
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- MAIN_MENU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo " 2>&1`
+ MAIN_MENU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo " 2>&1`
else
- MAIN_MENU_PKG_ERRORS=`$PKG_CONFIG --print-errors " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo " 2>&1`
+ MAIN_MENU_PKG_ERRORS=`$PKG_CONFIG --print-errors " $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo " 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$MAIN_MENU_PKG_ERRORS" >&5
- { { echo "$as_me:$LINENO: error: Package requirements ( $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo ) were not met:
+ { { echo "$as_me:$LINENO: error: Package requirements ( $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo ) were not met:
$MAIN_MENU_PKG_ERRORS
@@ -23594,7 +23594,7 @@ Alternatively, you may set the environme
and MAIN_MENU_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
" >&5
-echo "$as_me: error: Package requirements ( $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 NetworkManager libnm_glib >= 0.7.0 hal-storage cairo ) were not met:
+echo "$as_me: error: Package requirements ( $COMMON_MODULES libpanelapplet-2.0 gnome-desktop-2.0 gconf-2.0 libgtop-2.0 libgnome-2.0 libgnomeui-2.0 dbus-glib-1 hal-storage cairo ) were not met:
$MAIN_MENU_PKG_ERRORS
@@ -23637,7 +23637,7 @@ echo "${ECHO_T}yes" >&6; }
fi
-for ac_header in iwlib.h
+for ac_header in #
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -23850,14 +23850,6 @@ fi
done
-if test "x$have_iwlib" != "xyes" ; then
- { { echo "$as_me:$LINENO: error: cannot find iwlib" >&5
-echo "$as_me: error: cannot find iwlib" >&2;}
- { (exit 1); exit 1; }; }
-else
- MAIN_MENU_LIBS="$MAIN_MENU_LIBS -liw"
-
-fi

View File

@ -0,0 +1,9 @@
--- libslab/directory-tile.c.orig 2008-07-06 22:40:19.000000000 -0400
+++ libslab/directory-tile.c 2008-07-06 22:40:33.000000000 -0400
@@ -672,5 +672,5 @@ static void
disown_spawned_child (gpointer user_data)
{
setsid ();
- setpgrp ();
+ setpgrp (0, 0);
}

View File

@ -0,0 +1,32 @@
--- main-menu/src/Makefile.in.orig 2008-07-06 22:33:39.000000000 -0400
+++ main-menu/src/Makefile.in 2008-07-06 22:33:59.000000000 -0400
@@ -48,8 +48,7 @@ libexecPROGRAMS_INSTALL = $(INSTALL_PROG
PROGRAMS = $(libexec_PROGRAMS)
am_main_menu_OBJECTS = main-menu.$(OBJEXT) main-menu-ui.$(OBJEXT) \
main-menu-migration.$(OBJEXT) tile-table.$(OBJEXT) \
- hard-drive-status-tile.$(OBJEXT) network-status-tile.$(OBJEXT) \
- network-status-agent.$(OBJEXT) network-status-info.$(OBJEXT) \
+ hard-drive-status-tile.$(OBJEXT) \
tomboykeybinder.$(OBJEXT) eggaccelerators.$(OBJEXT)
main_menu_OBJECTS = $(am_main_menu_OBJECTS)
am__DEPENDENCIES_1 =
@@ -272,9 +271,6 @@ main_menu_SOURCES = \
main-menu-migration.c main-menu-migration.h \
tile-table.c tile-table.h \
hard-drive-status-tile.c hard-drive-status-tile.h \
- network-status-tile.c network-status-tile.h \
- network-status-agent.c network-status-agent.h \
- network-status-info.c network-status-info.h \
tomboykeybinder.c tomboykeybinder.h \
eggaccelerators.c eggaccelerators.h
@@ -360,9 +356,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main-menu-migration.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main-menu-ui.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main-menu.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/network-status-agent.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/network-status-info.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/network-status-tile.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tile-table.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tomboykeybinder.Po@am__quote@

View File

@ -0,0 +1,55 @@
--- main-menu/src/main-menu-ui.c.orig 2008-07-06 22:31:43.000000000 -0400
+++ main-menu/src/main-menu-ui.c 2008-07-06 22:33:32.000000000 -0400
@@ -47,7 +47,6 @@
#include "directory-tile.h"
#include "system-tile.h"
#include "hard-drive-status-tile.h"
-#include "network-status-tile.h"
#include "tile-table.h"
@@ -100,7 +99,6 @@ typedef struct {
GtkWidget *search_section;
GtkWidget *search_entry;
- GtkWidget *network_status;
GtkNotebook *file_section;
GtkWidget *page_selectors [3];
@@ -405,7 +403,6 @@ main_menu_ui_init (MainMenuUI *this)
priv->status_section = NULL;
priv->system_section = NULL;
- priv->network_status = NULL;
priv->volume_mon = NULL;
@@ -730,19 +727,6 @@ create_status_section (MainMenuUI *this)
gtk_container_add (ctnr, tile);
gtk_widget_show_all (GTK_WIDGET (ctnr));
- ctnr = GTK_CONTAINER (glade_xml_get_widget (
- priv->main_menu_xml, "network-status-container"));
- priv->network_status = network_status_tile_new ();
-
- gtk_widget_set_size_request (priv->network_status, 6 * icon_width, -1);
-
- g_signal_connect (
- G_OBJECT (priv->network_status), "tile-action-triggered",
- G_CALLBACK (tile_action_triggered_cb), this);
-
- gtk_container_add (ctnr, priv->network_status);
- gtk_widget_show_all (GTK_WIDGET (ctnr));
-
priv->status_section = glade_xml_get_widget (
priv->main_menu_xml, "slab-status-section");
}
@@ -1853,8 +1837,6 @@ present_slab_window (MainMenuUI *this)
{
MainMenuUIPrivate *priv = PRIVATE (this);
- network_tile_update_status (priv->network_status);
-
update_recently_used_sections (this);
gtk_window_present_with_time (GTK_WINDOW (priv->slab_window), gtk_get_current_event_time ());

View File

@ -0,0 +1,10 @@
The gnome-main-menu is a set of two 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.

View File

@ -0,0 +1,120 @@
bin/application-browser
include/slab/app-resizer.h
include/slab/app-shell-startup.h
include/slab/app-shell.h
include/slab/application-tile.h
include/slab/directory-tile.h
include/slab/document-tile.h
include/slab/gnome-utils.h
include/slab/nameplate-tile.h
include/slab/nld-marshal.c
include/slab/nld-marshal.h
include/slab/search-bar.h
include/slab/search-context-picker.h
include/slab/search-entry-watermark.h
include/slab/search-entry.h
include/slab/shell-window.h
include/slab/slab-gnome-util.h
include/slab/slab-section.h
include/slab/system-tile.h
include/slab/tile.h
lib/libslab.a
lib/libslab.la
lib/libslab.so
lib/libslab.so.1
libdata/bonobo/servers/GNOME_MainMenu.server
libdata/pkgconfig/libslab.pc
libexec/main-menu
share/applications/application-browser.desktop
share/applications/gnome-screensaver-lock.desktop
share/applications/gnome-session-kill.desktop
share/gnome-2.0/ui/GNOME_MainMenu_ContextMenu.xml
%%DATADIR%%/applications.xbel
%%DATADIR%%/documents.xbel
%%DATADIR%%/empty.ots
%%DATADIR%%/empty.ott
%%DATADIR%%/places.xbel
%%DATADIR%%/slab-window.glade
%%DATADIR%%/system-items.xbel
share/locale/af/LC_MESSAGES/gnome-main-menu.mo
share/locale/ar/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/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_IGID/LC_MESSAGES/gnome-main-menu.mo
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/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/ka/LC_MESSAGES/gnome-main-menu.mo
share/locale/km/LC_MESSAGES/gnome-main-menu.mo
share/locale/ko/LC_MESSAGES/gnome-main-menu.mo
share/locale/lo/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/mk/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/nl/LC_MESSAGES/gnome-main-menu.mo
share/locale/oc/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/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/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/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/LC_MESSAGES/gnome-main-menu.mo
@dirrmtry share/locale/zu/LC_MESSAGES
@dirrmtry share/locale/zu
@dirrmtry share/locale/xh/LC_MESSAGES
@dirrmtry share/locale/xh
@dirrmtry share/locale/ps/LC_MESSAGES
@dirrmtry share/locale/ps
@dirrmtry share/locale/oc/LC_MESSAGES
@dirrmtry share/locale/oc
@dirrmtry share/locale/mr/LC_MESSAGES
@dirrmtry share/locale/mr
@dirrmtry share/locale/lo/LC_MESSAGES
@dirrmtry share/locale/lo
@dirrmtry share/locale/km/LC_MESSAGES
@dirrmtry share/locale/km
@dirrmtry share/locale/en_US/LC_MESSAGES
@dirrmtry share/locale/en_US
@dirrmtry share/locale/en_IGID/LC_MESSAGES
@dirrmtry share/locale/en_IGID
@dirrmtry share/locale/ar/LC_MESSAGES
@dirrmtry share/locale/ar
@dirrm %%DATADIR%%
@dirrmtry share/applications