Check that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen

2005-05-10  Tor Lillqvist  <tml@novell.com>

	* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
	that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
	== gdk_screen_get_default(), as that might return NULL when this
	function is called.
This commit is contained in:
Tor Lillqvist 2005-05-10 06:51:44 +00:00 committed by Tor Lillqvist
parent 6aaf568c31
commit 846972ba14
4 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2005-05-10 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
== gdk_screen_get_default(), as that might return NULL when this
function is called.
2005-05-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the

View File

@ -1,3 +1,10 @@
2005-05-10 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
== gdk_screen_get_default(), as that might return NULL when this
function is called.
2005-05-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the

View File

@ -1,3 +1,10 @@
2005-05-10 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkproperty-win32.c (gdk_screen_get_setting): Check
that GDK_IS_SCREEN(screen) (like the X11 backend does), not screen
== gdk_screen_get_default(), as that might return NULL when this
function is called.
2005-05-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkalignment.c (gtk_alignment_size_allocate): Flip the

View File

@ -561,7 +561,7 @@ gdk_screen_get_setting (GdkScreen *screen,
const gchar *name,
GValue *value)
{
g_return_val_if_fail (screen == gdk_screen_get_default (), FALSE);
g_return_val_if_fail (GDK_IS_SCREEN (screen), FALSE);
/*
* XXX : if these values get changed through the Windoze UI the