Return NULL unless screen number is zero. We have only one screen on

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

	* gdk/win32/gdkscreen-win32.c
	(_gdk_windowing_substitute_screen_number): Return NULL unless
	screen number is zero. We have only one screen on Win32.
	(gdk_screen_make_display_name): Call gdk_display_get_name() and
	return that.
This commit is contained in:
Tor Lillqvist 2005-06-05 10:34:20 +00:00 committed by Tor Lillqvist
parent b60940539e
commit cf670606aa
4 changed files with 22 additions and 1 deletions

View File

@ -1,5 +1,11 @@
2005-06-05 Tor Lillqvist <tml@novell.com> 2005-06-05 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkscreen-win32.c
(_gdk_windowing_substitute_screen_number): Return NULL unless
screen number is zero. We have only one screen on Win32.
(gdk_screen_make_display_name): Call gdk_display_get_name() and
return that.
* modules/engines/Makefile.am * modules/engines/Makefile.am
* modules/input/Makefile.am: Decide whether to build the * modules/input/Makefile.am: Decide whether to build the
ms-windows theme engine based on the GDK backend, not based on ms-windows theme engine based on the GDK backend, not based on

View File

@ -1,5 +1,11 @@
2005-06-05 Tor Lillqvist <tml@novell.com> 2005-06-05 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkscreen-win32.c
(_gdk_windowing_substitute_screen_number): Return NULL unless
screen number is zero. We have only one screen on Win32.
(gdk_screen_make_display_name): Call gdk_display_get_name() and
return that.
* modules/engines/Makefile.am * modules/engines/Makefile.am
* modules/input/Makefile.am: Decide whether to build the * modules/input/Makefile.am: Decide whether to build the
ms-windows theme engine based on the GDK backend, not based on ms-windows theme engine based on the GDK backend, not based on

View File

@ -1,5 +1,11 @@
2005-06-05 Tor Lillqvist <tml@novell.com> 2005-06-05 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkscreen-win32.c
(_gdk_windowing_substitute_screen_number): Return NULL unless
screen number is zero. We have only one screen on Win32.
(gdk_screen_make_display_name): Call gdk_display_get_name() and
return that.
* modules/engines/Makefile.am * modules/engines/Makefile.am
* modules/input/Makefile.am: Decide whether to build the * modules/input/Makefile.am: Decide whether to build the
ms-windows theme engine based on the GDK backend, not based on ms-windows theme engine based on the GDK backend, not based on

View File

@ -106,11 +106,14 @@ gchar *
_gdk_windowing_substitute_screen_number (const gchar *display_name, _gdk_windowing_substitute_screen_number (const gchar *display_name,
int screen_number) int screen_number)
{ {
if (screen_number != 0)
return NULL;
return g_strdup (display_name); return g_strdup (display_name);
} }
gchar * gchar *
gdk_screen_make_display_name (GdkScreen *screen) gdk_screen_make_display_name (GdkScreen *screen)
{ {
return g_strdup (""); return gdk_display_get_name (_gdk_display);
} }