Fix a warning on startup when the cursor_size gconf key is not set.
This commit is contained in:
parent
7249c01905
commit
585befa2f2
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.58 2011/05/27 12:47:42 ajacoutot Exp $
|
# $OpenBSD: Makefile,v 1.59 2011/05/27 14:27:10 ajacoutot Exp $
|
||||||
|
|
||||||
SHARED_ONLY= Yes
|
SHARED_ONLY= Yes
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ COMMENT= lightweight window manager
|
|||||||
GNOME_PROJECT= metacity
|
GNOME_PROJECT= metacity
|
||||||
GNOME_VERSION= 2.34.0
|
GNOME_VERSION= 2.34.0
|
||||||
|
|
||||||
REVISION= 4
|
REVISION= 5
|
||||||
|
|
||||||
SHARED_LIBS += metacity-private 1.0 # .0.0
|
SHARED_LIBS += metacity-private 1.0 # .0.0
|
||||||
|
|
||||||
|
15
x11/gnome/metacity/patches/patch-src_core_prefs_c
Normal file
15
x11/gnome/metacity/patches/patch-src_core_prefs_c
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
$OpenBSD: patch-src_core_prefs_c,v 1.3 2011/05/27 14:27:10 ajacoutot Exp $
|
||||||
|
|
||||||
|
https://bugzilla.gnome.org/show_bug.cgi?id=651257
|
||||||
|
|
||||||
|
--- src/core/prefs.c.orig Fri May 27 16:13:11 2011
|
||||||
|
+++ src/core/prefs.c Fri May 27 16:12:47 2011
|
||||||
|
@@ -584,7 +584,7 @@ handle_preference_init_int (void)
|
||||||
|
&error);
|
||||||
|
cleanup_error (&error);
|
||||||
|
|
||||||
|
- if (value < cursor->minimum || value > cursor->maximum)
|
||||||
|
+ if (value && (value < cursor->minimum || value > cursor->maximum))
|
||||||
|
{
|
||||||
|
meta_warning (_("%d stored in GConf key %s is out of range %d to %d\n"),
|
||||||
|
value, cursor->key, cursor->minimum, cursor->maximum);
|
Loading…
Reference in New Issue
Block a user