don't crash on titlebar right-click

This commit is contained in:
Matthias Clasen 2010-04-05 16:46:02 +00:00
parent ef393778c0
commit ebaa1ddd58
2 changed files with 17 additions and 0 deletions

View File

@ -39,6 +39,8 @@ Patch24: metacity-2.28-empty-keybindings.patch
Patch25: metacity-2.28-xioerror-unknown-display.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=611260
Patch26: libs.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=614592
Patch27: title-click.patch
License: GPLv2+
Group: User Interface/Desktops
@ -115,6 +117,7 @@ API. This package exists purely for technical reasons.
%patch24 -p1 -b .empty-keybindings
%patch25 -p1 -b .xioerror-unknown-display
%patch26 -p1 -b .libs
%patch27 -p1 -b .title-click
# force regeneration
rm src/metacity.schemas
@ -222,6 +225,9 @@ fi
%{_mandir}/man1/metacity-window-demo.1.gz
%changelog
* Mon Apr 5 2010 Matthias Clasen <mclasen@redhat.com> - 2.30.0-2
- Don't crash on titlebar right-click
* Wed Mar 31 2010 Matthias Clasen <mclasen@redhat.com> - 2.30.0-1
- Update to 2.30.0

11
title-click.patch Normal file
View File

@ -0,0 +1,11 @@
--- metacity-2.30.0/src/core/core.c.orig 2010-03-31 21:37:39.000000000 +0100
+++ metacity-2.30.0/src/core/core.c 2010-04-01 15:59:26.000000000 +0100
@@ -520,7 +520,7 @@ meta_core_get_menu_accelerator (MetaMenu
switch (menu_op)
{
case META_MENU_OP_NONE:
- name = "none";
+ /* No keybinding for this one */
break;
case META_MENU_OP_DELETE:
name = "close";