List the three theme gtkrc files separately, zip doesn't do anything if

2004-09-03  Tor Lillqvist  <tml@iki.fi>

	* gtk-zip.sh.in: List the three theme gtkrc files separately, zip
	doesn't do anything if one of the files on its command line
	doesn't exist.

	Handle changes of screen resolution on Win32. (#151581, reported by
	Arjohn Kampman)

	* gdk/win32/gdkwindow-win32.c (_gdk_windowing_window_init,
	_gdk_root_window_size_init): Factor out setting the root window's
	size (as the size of the union of all monitors) to a new function.

	* gdk/win32/gdkdisplay-win32.c (gdk_display_open,
	_gdk_monitor_init): Factor out the monitor query to a new
	function.

	* gdk/win32/gdkprivate-win32.h: Declare above new functions.

	* gdk/win32/gdkevents-win32.c (gdk_event_translate,
	handle_display_change): Handle WM_DISPLAYCHANGE by calling the
	above two functions, and emitting the "size_changed" signal on our
	(only) GdkScreen.
This commit is contained in:
Tor Lillqvist
2004-09-03 01:27:57 +00:00
committed by Tor Lillqvist
parent f96b128470
commit f8ef369e78
10 changed files with 165 additions and 35 deletions

View File

@ -2057,6 +2057,14 @@ resize_timer_proc (HWND hwnd,
handle_stuff_while_moving_or_resizing ();
}
static void
handle_display_change (void)
{
_gdk_monitor_init ();
_gdk_root_window_size_init ();
g_signal_emit_by_name (_gdk_screen, "size_changed");
}
static gboolean
gdk_event_translate (GdkDisplay *display,
MSG *msg,
@ -3275,6 +3283,11 @@ gdk_event_translate (GdkDisplay *display,
return_val = TRUE;
break;
case WM_DISPLAYCHANGE:
handle_display_change ();
break;
#ifdef HAVE_WINTAB
/* Handle WINTAB events here, as we know that gdkinput.c will
* use the fixed WT_DEFBASE as lcMsgBase, and we thus can use the