fix some markup issues

This commit is contained in:
Matthias Clasen 2008-07-08 17:51:28 +00:00
parent f082ccb7eb
commit 6c3559e89f
2 changed files with 20 additions and 1 deletions

12
escape-comment.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up gnome-session-2.23.4.1/capplet/commands.c.escape gnome-session-2.23.4.1/capplet/commands.c
--- gnome-session-2.23.4.1/capplet/commands.c.escape 2008-07-08 13:40:02.000000000 -0400
+++ gnome-session-2.23.4.1/capplet/commands.c 2008-07-08 13:40:15.000000000 -0400
@@ -788,7 +788,7 @@ char *
spc_command_get_app_description (const char *name,
const char *comment)
{
- return g_strdup_printf ("<b>%s</b>\n%s", name,
+ return g_markup_printf_escaped ("<b>%s</b>\n%s", name,
(!gsm_util_text_is_blank (comment) ?
comment : _("No description")));
}

View File

@ -12,7 +12,7 @@
Summary: GNOME session manager
Name: gnome-session
Version: 2.23.4.1
Release: 1%{?dist}
Release: 2%{?dist}
URL: http://www.gnome.org
Source0: http://download.gnome.org/sources/gnome-session/2.23/%{name}-%{version}.tar.bz2
Source1: redhat-default-session
@ -56,6 +56,9 @@ Patch22: ice-leaks.patch
# Work around the assumption that the nautilus desktop file is nautilus.desktop
Patch34: gnome-session-nautilus.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=542086
Patch47: escape-comment.patch
BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
BuildRequires: gtk2-devel >= %{gtk2_version}
BuildRequires: dbus-devel >= %{dbus_version}
@ -99,6 +102,7 @@ GNOME components and handles logout and saving the session.
#%patch21 -p0 -b .use-gdm-hints
#%patch22 -p1 -b .ice-leaks
%patch34 -p1 -b .nautilus
%patch47 -p1 -b .escape-comment
%build
@ -184,6 +188,9 @@ fi
%changelog
* Tue Jul 8 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.4.1-2
- Escape comments for markup
* Wed Jun 18 2008 Matthias Clasen <mclasen@redhat.com> - 2.23.4.1-1
- Update to 2.23.4.1