diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-06-11 06:17:00 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2011-06-11 06:17:00 +0800 |
commit | 46e5247dd30d6ff2a5d3786916d835cb048c26bd (patch) | |
tree | b2325891e434b0a6070ee5dff7c0bae395b5429c /x11-wm/metacity | |
parent | 599a34504939a9957c46c4ab515adfec42cd8b7c (diff) | |
download | marcuscom-ports-46e5247dd30d6ff2a5d3786916d835cb048c26bd.tar marcuscom-ports-46e5247dd30d6ff2a5d3786916d835cb048c26bd.tar.gz marcuscom-ports-46e5247dd30d6ff2a5d3786916d835cb048c26bd.tar.bz2 marcuscom-ports-46e5247dd30d6ff2a5d3786916d835cb048c26bd.tar.lz marcuscom-ports-46e5247dd30d6ff2a5d3786916d835cb048c26bd.tar.xz marcuscom-ports-46e5247dd30d6ff2a5d3786916d835cb048c26bd.tar.zst marcuscom-ports-46e5247dd30d6ff2a5d3786916d835cb048c26bd.zip |
Move the metacity 2.34.x from x11-wm/metacity to x11-wm/metacity3 then
downgrade the x11-wm/metacity to 2.30.x. The GNOME 2 needs metacity 2.30.x
for correct default of theme, fonts, hotkey and etc. Also, function a bit
different.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16054 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-wm/metacity')
-rw-r--r-- | x11-wm/metacity/Makefile | 6 | ||||
-rw-r--r-- | x11-wm/metacity/distinfo | 4 | ||||
-rw-r--r-- | x11-wm/metacity/files/patch-bugzilla_588119 | 139 | ||||
-rw-r--r-- | x11-wm/metacity/files/patch-configure | 8 | ||||
-rw-r--r-- | x11-wm/metacity/pkg-plist | 12 |
5 files changed, 151 insertions, 18 deletions
diff --git a/x11-wm/metacity/Makefile b/x11-wm/metacity/Makefile index 2794190fd..7edbbf19a 100644 --- a/x11-wm/metacity/Makefile +++ b/x11-wm/metacity/Makefile @@ -3,11 +3,11 @@ # Whom: Garrett Rooney <rooneg@electricjellyfish.net> # # $FreeBSD$ -# $MCom: ports/x11-wm/metacity/Makefile,v 1.158 2010/09/30 07:04:02 kwm Exp $ +# $MCom$ # PORTNAME= metacity -PORTVERSION= 2.34.0 +PORTVERSION= 2.30.3 CATEGORIES= x11-wm MASTER_SITES= GNOME DIST_SUBDIR= gnome2 @@ -20,6 +20,8 @@ LIB_DEPENDS= startup-notification-1.0:${PORTSDIR}/x11/startup-notification \ canberra-gtk.0:${PORTSDIR}/audio/libcanberra RUN_DEPENDS= zenity:${PORTSDIR}/x11/zenity +CONFLICTS= metacity-2.3[4-9]* + USE_BZIP2= yes USE_XORG= x11 xcomposite xdamage USE_GETTEXT= yes diff --git a/x11-wm/metacity/distinfo b/x11-wm/metacity/distinfo index a7b8698c0..90104c118 100644 --- a/x11-wm/metacity/distinfo +++ b/x11-wm/metacity/distinfo @@ -1,2 +1,2 @@ -SHA256 (gnome2/metacity-2.34.0.tar.bz2) = e316beff76658c98e21ddf4e7eaba12cd761b35002dc38701441db6740a6d698 -SIZE (gnome2/metacity-2.34.0.tar.bz2) = 2382473 +SHA256 (gnome2/metacity-2.30.3.tar.bz2) = 08f887018fa5e447cf184d03bae3fe2c05fdb7583bed6768e3b4d66392fc18dd +SIZE (gnome2/metacity-2.30.3.tar.bz2) = 2358537 diff --git a/x11-wm/metacity/files/patch-bugzilla_588119 b/x11-wm/metacity/files/patch-bugzilla_588119 new file mode 100644 index 000000000..823c111ab --- /dev/null +++ b/x11-wm/metacity/files/patch-bugzilla_588119 @@ -0,0 +1,139 @@ +From a3de65d5d1861f755ced7cad291fbbd4f1b8ef51 Mon Sep 17 00:00:00 2001 +From: Owen W. Taylor <otaylor@fishsoup.net> +Date: Sat, 22 Aug 2009 15:00:57 -0400 +Subject: [PATCH] Should set RestartStyleHint to RestartIfRunning when replaced + +This reverts most of commit abbd057eb967e6ab462ffe305f41b2b04d417b25; + + - It's fine to call meta_session_shutdown() after the display + is closed, since it's talking over the ICE connection + - We should not call warn_about_lame_clients_and_finish_interact() + unless we are interacting with the window manager in a session + save. + +However, the part of abbd057 that fixed accessing freed memory was +fixing a real problem; this patches does the same thing in a simpler +way by fixing an obvious type in meta_display_close() where it was +NULL'ing out the local variable 'display' rather than the global +variable 'the_display' and adding keeping the check in meta_finalize() +that was added in abbd057. + +The order of calling meta_session_shutdown() and +calling meta_display_close() is reverted back to the old order to +make it clear that it's OK if the display way already closed previously. + +http://bugzilla.gnome.org/show_bug.cgi?id=588119 +--- + src/core/display-private.h | 2 +- + src/core/display.c | 16 ++++------------ + src/core/main.c | 5 ++--- + src/core/session.c | 8 -------- + 4 files changed, 7 insertions(+), 24 deletions(-) + +diff --git a/src/core/display-private.h b/src/core/display-private.h +index 19287f3..9c8ebc6 100644 +--- src/core/display-private.h ++++ src/core/display-private.h +@@ -329,7 +329,7 @@ MetaScreen* meta_display_screen_for_xwindow (MetaDisplay *display, + void meta_display_grab (MetaDisplay *display); + void meta_display_ungrab (MetaDisplay *display); + +-void meta_display_unmanage_screen (MetaDisplay **display, ++void meta_display_unmanage_screen (MetaDisplay *display, + MetaScreen *screen, + guint32 timestamp); + +diff --git a/src/core/display.c b/src/core/display.c +index 55c374a..8e35a35 100644 +--- src/core/display.c ++++ src/core/display.c +@@ -926,7 +926,7 @@ meta_display_close (MetaDisplay *display, + meta_compositor_destroy (display->compositor); + + g_free (display); +- display = NULL; ++ the_display = NULL; + + meta_quit (META_EXIT_SUCCESS); + } +@@ -4762,13 +4762,10 @@ process_selection_clear (MetaDisplay *display, + meta_verbose ("Got selection clear for screen %d on display %s\n", + screen->number, display->name); + +- meta_display_unmanage_screen (&display, ++ meta_display_unmanage_screen (display, + screen, + event->xselectionclear.time); + +- if (!display) +- the_display = NULL; +- + /* display and screen may both be invalid memory... */ + + return; +@@ -4790,12 +4787,10 @@ process_selection_clear (MetaDisplay *display, + } + + void +-meta_display_unmanage_screen (MetaDisplay **displayp, ++meta_display_unmanage_screen (MetaDisplay *display, + MetaScreen *screen, + guint32 timestamp) + { +- MetaDisplay *display = *displayp; +- + meta_verbose ("Unmanaging screen %d on display %s\n", + screen->number, display->name); + +@@ -4805,10 +4800,7 @@ meta_display_unmanage_screen (MetaDisplay **displayp, + display->screens = g_slist_remove (display->screens, screen); + + if (display->screens == NULL) +- { +- meta_display_close (display, timestamp); +- *displayp = NULL; +- } ++ meta_display_close (display, timestamp); + } + + void +diff --git a/src/core/main.c b/src/core/main.c +index a36a396..44d317e 100644 +--- src/core/main.c ++++ src/core/main.c +@@ -361,12 +361,11 @@ static void + meta_finalize (void) + { + MetaDisplay *display = meta_get_display(); +- +- meta_session_shutdown (); +- + if (display) + meta_display_close (display, + CurrentTime); /* I doubt correct timestamps matter here */ ++ ++ meta_session_shutdown (); + } + + static void +diff --git a/src/core/session.c b/src/core/session.c +index 7e3b389..0d69350 100644 +--- src/core/session.c ++++ src/core/session.c +@@ -376,14 +376,6 @@ meta_session_shutdown (void) + SmProp *props[1]; + char hint = SmRestartIfRunning; + +- if (!meta_get_display ()) +- { +- meta_verbose ("Cannot close session because there is no display"); +- return; +- } +- +- warn_about_lame_clients_and_finish_interact (FALSE); +- + if (session_connection == NULL) + return; + +-- +1.6.4 diff --git a/x11-wm/metacity/files/patch-configure b/x11-wm/metacity/files/patch-configure index 5ae975a06..223d0af9e 100644 --- a/x11-wm/metacity/files/patch-configure +++ b/x11-wm/metacity/files/patch-configure @@ -1,9 +1,9 @@ ---- configure.orig 2011-04-05 20:58:36.000000000 +0200 -+++ configure 2011-04-05 20:59:24.000000000 +0200 -@@ -18286,7 +18286,7 @@ +--- configure.orig 2010-04-01 13:44:38.000000000 +0200 ++++ configure 2010-04-01 13:45:49.000000000 +0200 +@@ -24238,7 +24238,7 @@ " - METACITY_MINOR_VERSION=34 + METACITY_MINOR_VERSION=30 -if test $(( $(echo $METACITY_MINOR_VERSION) %2)) == "1"; then +if test $(( $(echo $METACITY_MINOR_VERSION) %2)) = "1"; then stable_version=$(( ($METACITY_MINOR_VERSION / 2) * 2)) diff --git a/x11-wm/metacity/pkg-plist b/x11-wm/metacity/pkg-plist index 3a21df0a4..9c9b5015e 100644 --- a/x11-wm/metacity/pkg-plist +++ b/x11-wm/metacity/pkg-plist @@ -15,13 +15,9 @@ lib/libmetacity-private.so lib/libmetacity-private.so.0 libdata/pkgconfig/libmetacity-private.pc share/applications/metacity.desktop -share/gnome-control-center/keybindings/50-metacity-launchers.xml -share/gnome-control-center/keybindings/50-metacity-navigation.xml -share/gnome-control-center/keybindings/50-metacity-screenshot.xml -share/gnome-control-center/keybindings/50-metacity-system.xml -share/gnome-control-center/keybindings/50-metacity-windows.xml +share/gnome-control-center/keybindings/50-metacity-desktop-key.xml +share/gnome-control-center/keybindings/50-metacity-key.xml share/gnome/help/creating-metacity-themes/C/creating-metacity-themes.xml -share/gnome/help/creating-metacity-themes/de/creating-metacity-themes.xml share/gnome/wm-properties/metacity-wm.desktop share/locale/am/LC_MESSAGES/metacity.mo share/locale/ar/LC_MESSAGES/metacity.mo @@ -108,7 +104,6 @@ share/locale/te/LC_MESSAGES/metacity.mo share/locale/th/LC_MESSAGES/metacity.mo share/locale/tk/LC_MESSAGES/metacity.mo share/locale/tr/LC_MESSAGES/metacity.mo -share/locale/ug/LC_MESSAGES/metacity.mo share/locale/uk/LC_MESSAGES/metacity.mo share/locale/vi/LC_MESSAGES/metacity.mo share/locale/wa/LC_MESSAGES/metacity.mo @@ -236,7 +231,6 @@ share/themes/Simple/metacity-1/minimize.png @dirrmtry share/themes/AgingGorilla @dirrm %%DATADIR%%/icons @dirrm %%DATADIR%% -@dirrm share/gnome/help/creating-metacity-themes/de @dirrm share/gnome/help/creating-metacity-themes/C @dirrm share/gnome/help/creating-metacity-themes @dirrm include/metacity-1/metacity-private @@ -248,8 +242,6 @@ share/themes/Simple/metacity-1/minimize.png @dirrmtry share/locale/yo @dirrmtry share/locale/xh/LC_MESSAGES @dirrmtry share/locale/xh -@dirrmtry share/locale/ug/LC_MESSAGES -@dirrmtry share/locale/ug @dirrmtry share/locale/te/LC_MESSAGES @dirrmtry share/locale/te @dirrmtry share/locale/sr@latin/LC_MESSAGES |