diff options
author | Nirbheek Chauhan <nirbheek@gentoo.org> | 2009-03-21 18:39:36 +0000 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@gentoo.org> | 2009-03-21 18:39:36 +0000 |
commit | c4d4882b50edc970eaa9b74fd6f264fb9708b396 (patch) | |
tree | 132cff50302b08ac1d607c9f7a0c6b03eb77b693 /gnome-base | |
parent | Missing dbus in IUSE, clean DEPEND/RDEPEND, spotted by Mr_Bones. Also remove ... (diff) | |
download | gentoo-2-c4d4882b50edc970eaa9b74fd6f264fb9708b396.tar.gz gentoo-2-c4d4882b50edc970eaa9b74fd6f264fb9708b396.tar.bz2 gentoo-2-c4d4882b50edc970eaa9b74fd6f264fb9708b396.zip |
Add patches to gnome-control-center-2.24.0.2-r1 for fixing bug 263166 and bug 263168
(Portage version: 2.2_rc26/cvs/Linux i686)
Diffstat (limited to 'gnome-base')
4 files changed, 203 insertions, 1 deletions
diff --git a/gnome-base/gnome-control-center/ChangeLog b/gnome-base/gnome-control-center/ChangeLog index 64fa439714b2..74a1d0c10a89 100644 --- a/gnome-base/gnome-control-center/ChangeLog +++ b/gnome-base/gnome-control-center/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for gnome-base/gnome-control-center # Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-control-center/ChangeLog,v 1.22 2009/03/19 15:47:44 josejx Exp $ +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-control-center/ChangeLog,v 1.23 2009/03/21 18:39:36 nirbheek Exp $ + +*gnome-control-center-2.24.0.1-r1 (21 Mar 2009) + + 21 Mar 2009; Nirbheek Chauhan <nirbheek@gentoo.org> + +files/gnome-control-center-2.24.0.1-capplet-help.patch, + +files/gnome-control-center-2.24.0.1-hv-max.patch, + +gnome-control-center-2.24.0.1-r1.ebuild: + Add patches for fixing bug 263166 and bug 263168 19 Mar 2009; Joseph Jezak <josejx@gentoo.org> gnome-control-center-2.24.0.1.ebuild: diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-2.24.0.1-capplet-help.patch b/gnome-base/gnome-control-center/files/gnome-control-center-2.24.0.1-capplet-help.patch new file mode 100644 index 000000000000..3ad6403c0daa --- /dev/null +++ b/gnome-base/gnome-control-center/files/gnome-control-center-2.24.0.1-capplet-help.patch @@ -0,0 +1,54 @@ +diff -up gnome-control-center-2.24.0.1/capplets/appearance/appearance-main.c.capplet-help gnome-control-center-2.24.0.1/capplets/appearance/appearance-main.c +--- gnome-control-center-2.24.0.1/capplets/appearance/appearance-main.c.capplet-help 2008-10-04 01:40:15.000000000 -0400 ++++ gnome-control-center-2.24.0.1/capplets/appearance/appearance-main.c 2008-10-04 01:40:34.000000000 -0400 +@@ -85,6 +85,38 @@ main_window_response (GtkWidget *widget, + g_object_unref (data->client); + g_object_unref (data->xml); + } ++ else if (response_id == GTK_RESPONSE_HELP) ++ { ++ GtkNotebook *nb; ++ gint pindex; ++ ++ nb = GTK_NOTEBOOK (glade_xml_get_widget (data->xml, "main_notebook")); ++ pindex = gtk_notebook_get_current_page (nb); ++ ++ switch (pindex) ++ { ++ case 0: /* theme */ ++ capplet_help (GTK_WINDOW (widget), "user-guide.xml", ++ "goscustdesk-12"); ++ break; ++ case 1: /* background */ ++ capplet_help (GTK_WINDOW (widget), "user-guide.xml", ++ "goscustdesk-7"); ++ break; ++ case 2: /* fonts */ ++ capplet_help (GTK_WINDOW (widget), "user-guide.xml", ++ "goscustdesk-38"); ++ break; ++ case 3: /* interface */ ++ capplet_help (GTK_WINDOW (widget), "user-guide.xml", ++ "goscustuserinter-2"); ++ break; ++ default: ++ capplet_help (GTK_WINDOW (widget), "user-guide.xml", ++ "prefs-look-and-feel"); ++ break; ++ } ++ } + } + + int +diff -up gnome-control-center-2.24.0.1/capplets/appearance/appearance-style.c.capplet-help gnome-control-center-2.24.0.1/capplets/appearance/appearance-style.c +--- gnome-control-center-2.24.0.1/capplets/appearance/appearance-style.c.capplet-help 2008-10-04 01:40:24.000000000 -0400 ++++ gnome-control-center-2.24.0.1/capplets/appearance/appearance-style.c 2008-10-04 01:40:34.000000000 -0400 +@@ -392,7 +392,7 @@ static void + style_response_cb (GtkDialog *dialog, gint response_id) + { + if (response_id == GTK_RESPONSE_HELP) { +- /* FIXME: help */ ++ capplet_help (GTK_WINDOW (dialog), "user-guide.xml", "goscustdesk-61"); + } else { + gtk_widget_hide (GTK_WIDGET (dialog)); + } diff --git a/gnome-base/gnome-control-center/files/gnome-control-center-2.24.0.1-hv-max.patch b/gnome-base/gnome-control-center/files/gnome-control-center-2.24.0.1-hv-max.patch new file mode 100644 index 000000000000..5cd18f64691e --- /dev/null +++ b/gnome-base/gnome-control-center/files/gnome-control-center-2.24.0.1-hv-max.patch @@ -0,0 +1,30 @@ +diff -up gnome-control-center-2.24.0.1/libwindow-settings/metacity-window-manager.c.hv-max gnome-control-center-2.24.0.1/libwindow-settings/metacity-window-manager.c +--- gnome-control-center-2.24.0.1/libwindow-settings/metacity-window-manager.c.hv-max 2008-10-04 02:01:24.000000000 -0400 ++++ gnome-control-center-2.24.0.1/libwindow-settings/metacity-window-manager.c 2008-10-04 02:02:53.000000000 -0400 +@@ -214,10 +214,10 @@ metacity_change_settings (GnomeWindowMan + action = "toggle_maximize"; + break; + case DOUBLE_CLICK_MAXIMIZE_VERTICALLY: +- action = "toggle_maximize_vert"; ++ action = "toggle_maximize_vertically"; + break; + case DOUBLE_CLICK_MAXIMIZE_HORIZONTALLY: +- action = "toggle_maximize_horiz"; ++ action = "toggle_maximize_horizontally"; + break; + case DOUBLE_CLICK_MINIMIZE: + action = "minimize"; +@@ -370,9 +370,11 @@ metacity_get_settings (GnomeWindowManage + settings->double_click_action = DOUBLE_CLICK_SHADE; + else if (strcmp (str, "toggle_maximize") == 0) + settings->double_click_action = DOUBLE_CLICK_MAXIMIZE; +- else if (strcmp (str, "toggle_maximize_horiz") == 0) ++ else if (strcmp (str, "toggle_maximize_horizontally") == 0 || ++ strcmp (str, "toggle_maximize_horiz") == 0) + settings->double_click_action = DOUBLE_CLICK_MAXIMIZE_HORIZONTALLY; +- else if (strcmp (str, "toggle_maximize_vert") == 0) ++ else if (strcmp (str, "toggle_maximize_vertically") == 0 || ++ strcmp (str, "toggle_maximize_vert") == 0) + settings->double_click_action = DOUBLE_CLICK_MAXIMIZE_VERTICALLY; + else if (strcmp (str, "minimize") == 0) + settings->double_click_action = DOUBLE_CLICK_MINIMIZE; diff --git a/gnome-base/gnome-control-center/gnome-control-center-2.24.0.1-r1.ebuild b/gnome-base/gnome-control-center/gnome-control-center-2.24.0.1-r1.ebuild new file mode 100644 index 000000000000..3f40ed71dd5d --- /dev/null +++ b/gnome-base/gnome-control-center/gnome-control-center-2.24.0.1-r1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-control-center/gnome-control-center-2.24.0.1-r1.ebuild,v 1.1 2009/03/21 18:39:36 nirbheek Exp $ + +EAPI="1" + +inherit eutils gnome2 + +DESCRIPTION="The gnome2 Desktop configuration tool" +HOMEPAGE="http://www.gnome.org/" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="eds hal +sound" + +# FIXME: eel is still needed for libslab +RDEPEND="x11-libs/libXft + >=x11-libs/gtk+-2.11.6 + >=dev-libs/glib-2.17.4 + >=gnome-base/gconf-2.0 + >=gnome-base/libglade-2 + >=gnome-base/librsvg-2.0 + >=gnome-base/nautilus-2.6 + >=media-libs/fontconfig-1 + >=dev-libs/dbus-glib-0.73 + >=x11-libs/libxklavier-3.6 + >=x11-wm/metacity-2.23.1 + >=gnome-base/gnome-panel-2.0 + >=gnome-base/libgnomekbd-2.21.4.1 + >=gnome-base/gnome-desktop-2.23.90 + >=gnome-base/gnome-menus-2.11.1 + gnome-base/eel + gnome-base/gnome-settings-daemon + + >=media-libs/gstreamer-0.10.1.2 + >=media-libs/gst-plugins-base-0.10.1.2 + >=media-plugins/gst-plugins-gconf-0.10 + media-plugins/gst-plugins-meta:0.10 + + x11-libs/pango + dev-libs/libxml2 + media-libs/freetype + + eds? ( >=gnome-extra/evolution-data-server-1.7.90 ) + hal? ( >=sys-apps/hal-0.5.6 ) + sound? ( + >=media-libs/libcanberra-0.4 + x11-themes/sound-theme-freedesktop ) + + >=gnome-base/libbonobo-2 + >=gnome-base/libgnome-2.2 + >=gnome-base/libbonoboui-2 + >=gnome-base/libgnomeui-2.2 + + x11-apps/xmodmap + x11-libs/libXScrnSaver + x11-libs/libXext + x11-libs/libX11 + x11-libs/libXxf86misc + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libXcursor" +DEPEND="${RDEPEND} + x11-proto/scrnsaverproto + x11-proto/xextproto + x11-proto/xproto + x11-proto/xf86miscproto + x11-proto/kbproto + x11-proto/randrproto + x11-proto/renderproto + + sys-devel/gettext + >=dev-util/intltool-0.40 + >=dev-util/pkgconfig-0.19 + dev-util/desktop-file-utils + + app-text/scrollkeeper + >=app-text/gnome-doc-utils-0.10.1" +# Needed for autoreconf +# gnome-base/gnome-common + +DOCS="AUTHORS ChangeLog NEWS README TODO" + +pkg_setup() { + if use sound && ! built_with_use media-libs/libcanberra gtk; then + eerror "You need to rebuild media-libs/libcanberra with gtk support." + die "Rebuild media-libs/libcanberra with USE='gtk'" + fi + + G2CONF="${G2CONF} + --disable-update-mimedb + --enable-gstreamer=0.10 + $(use_enable eds aboutme) + $(use_enable hal) + $(use_with sound libcanberra)" +} + +src_unpack() { + gnome2_src_unpack + + # Fix compilation on fbsd, bug #256958 + epatch "${FILESDIR}/${P}-fbsd.patch" + + # Upstream patch for Hor and Vert Maximise, bug #263166 + epatch "${FILESDIR}/${P}-hv-max.patch" + + # Upstream patch for fixing capplet help buttons, bug #263168 + epatch "${FILESDIR}/${P}-capplet-help.patch" +} |