SHA256
1
0
forked from pool/mutter

Accepting request 33540 from home:dimstar:branches:GNOME:Factory

Copy from home:dimstar:branches:GNOME:Factory/mutter via accept of submit request 33540 revision 4.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/33540
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/mutter?expand=0&rev=23
This commit is contained in:
Magnus Boman 2010-02-28 08:17:25 +00:00 committed by Git OBS Bridge
parent 7433162fa7
commit 394a1c850e
4 changed files with 93 additions and 0 deletions

View File

@ -2,6 +2,28 @@ Index: mutter-2.29.0/src/compositor/mutter-shaped-texture.c
=================================================================== ===================================================================
--- mutter-2.29.0.orig/src/compositor/mutter-shaped-texture.c --- mutter-2.29.0.orig/src/compositor/mutter-shaped-texture.c
+++ mutter-2.29.0/src/compositor/mutter-shaped-texture.c +++ mutter-2.29.0/src/compositor/mutter-shaped-texture.c
@@ -124,18 +124,18 @@ mutter_shaped_texture_dispose (GObject *
if (priv->material != COGL_INVALID_HANDLE)
{
- cogl_material_unref (priv->material);
+ cogl_handle_unref (priv->material);
priv->material = COGL_INVALID_HANDLE;
}
if (priv->material_unshaped != COGL_INVALID_HANDLE)
{
- cogl_material_unref (priv->material_unshaped);
+ cogl_handle_unref (priv->material_unshaped);
priv->material_unshaped = COGL_INVALID_HANDLE;
}
#if 1 /* see comment in mutter_shaped_texture_paint */
if (priv->material_workaround != COGL_INVALID_HANDLE)
{
- cogl_material_unref (priv->material_workaround);
+ cogl_handle_unref (priv->material_workaround);
priv->material_workaround = COGL_INVALID_HANDLE;
}
#endif
@@ -194,7 +194,7 @@ mutter_shaped_texture_dirty_mask (Mutter @@ -194,7 +194,7 @@ mutter_shaped_texture_dirty_mask (Mutter
if (mask_gl_target == GL_TEXTURE_RECTANGLE_ARB) if (mask_gl_target == GL_TEXTURE_RECTANGLE_ARB)
glDeleteTextures (1, &mask_gl_tex); glDeleteTextures (1, &mask_gl_tex);
@ -42,3 +64,25 @@ Index: mutter-2.29.0/src/compositor/mutter-texture-tower.c
width = cogl_texture_get_width (tower->textures[0]); width = cogl_texture_get_width (tower->textures[0]);
height = cogl_texture_get_height (tower->textures[0]); height = cogl_texture_get_height (tower->textures[0]);
Index: mutter-2.29.0/src/compositor/tidy/tidy-texture-frame.c
===================================================================
--- mutter-2.29.0.orig/src/compositor/tidy/tidy-texture-frame.c
+++ mutter-2.29.0/src/compositor/tidy/tidy-texture-frame.c
@@ -155,7 +155,7 @@ tidy_texture_frame_unrealize (ClutterAct
if (priv->material == COGL_INVALID_HANDLE)
return;
- cogl_material_unref (priv->material);
+ cogl_handle_unref (priv->material);
priv->material = COGL_INVALID_HANDLE;
CLUTTER_ACTOR_UNSET_FLAGS (self, CLUTTER_ACTOR_REALIZED);
@@ -415,7 +415,7 @@ tidy_texture_frame_dispose (GObject *gob
if (priv->material)
{
- cogl_material_unref (priv->material);
+ cogl_handle_unref (priv->material);
priv->material = COGL_INVALID_HANDLE;
}

39
mutter-gcc45.patch Normal file
View File

@ -0,0 +1,39 @@
Index: mutter-2.29.0/src/core/core.c
===================================================================
--- mutter-2.29.0.orig/src/core/core.c
+++ mutter-2.29.0/src/core/core.c
@@ -526,6 +526,9 @@ meta_core_get_menu_accelerator (MetaMenu
switch (menu_op)
{
+ case META_MENU_OP_NONE:
+ /* No keybindings needed here */
+ break;
case META_MENU_OP_DELETE:
name = "close";
break;
Index: mutter-2.29.0/src/include/common.h
===================================================================
--- mutter-2.29.0.orig/src/include/common.h
+++ mutter-2.29.0/src/include/common.h
@@ -52,6 +52,7 @@ typedef enum
typedef enum
{
+ META_MENU_OP_NONE = 0,
META_MENU_OP_DELETE = 1 << 0,
META_MENU_OP_MINIMIZE = 1 << 1,
META_MENU_OP_UNMAXIMIZE = 1 << 2,
Index: mutter-2.29.0/src/core/window.c
===================================================================
--- mutter-2.29.0.orig/src/core/window.c
+++ mutter-2.29.0/src/core/window.c
@@ -7157,7 +7157,7 @@ menu_callback (MetaWindowMenu *menu,
meta_window_shove_titlebar_onscreen (window);
break;
- case 0:
+ case META_MENU_OP_NONE:
/* nothing */
break;

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 25 21:32:53 UTC 2010 - dominique.leuenberger@tmf-group.com
- Refresh mutter-cogl_texture-deprecated.patch to also take care
of cogl_material_[un]ref, which is deprecated with clutter
1.1.14.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 19 11:17:36 CET 2010 - dimstar@opensuse.org Fri Feb 19 11:17:36 CET 2010 - dimstar@opensuse.org

View File

@ -39,6 +39,8 @@ Summary: Window and compositing manager based on Clutter
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM mutter-cogl_texture-deprecated.patch bgo#610454 dimstar@opensuse.org -- cogl_texture_[un]ref has been deprecated in favor of cogl_handle_[un]ref. # PATCH-FIX-UPSTREAM mutter-cogl_texture-deprecated.patch bgo#610454 dimstar@opensuse.org -- cogl_texture_[un]ref has been deprecated in favor of cogl_handle_[un]ref.
Patch0: mutter-cogl_texture-deprecated.patch Patch0: mutter-cogl_texture-deprecated.patch
# PATCH-FIX-UPSTREAM mutter-gcc45.patch bgo#606719 dimstar@opensuse.org -- Fix build with GCC 4.5
Patch1: mutter-gcc45.patch
Url: http://www.gnome.org Url: http://www.gnome.org
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: zenity Requires: zenity
@ -67,6 +69,7 @@ to develop applications that require these.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
%build %build
%configure \ %configure \