Fix compile warnings (add missing const and remove unused variables).

2008-01-25  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: Fix compile warnings (add missing
	const and remove unused variables).

svn path=/trunk/; revision=19401
This commit is contained in:
Richard Hult 2008-01-25 13:13:05 +00:00 committed by Richard Hult
parent 72bc7eb44b
commit 41e1be54e8
2 changed files with 11 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2008-01-25 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: Fix compile warnings (add missing
const and remove unused variables).
2008-01-25 Michael Natterer <mitch@imendio.com>
* gtk/gtkbutton.h

View File

@ -167,8 +167,8 @@ gdk_window_impl_quartz_init (GdkWindowImplQuartz *impl)
}
static void
gdk_window_impl_quartz_begin_paint_region (GdkPaintable *paintable,
GdkRegion *region)
gdk_window_impl_quartz_begin_paint_region (GdkPaintable *paintable,
const GdkRegion *region)
{
GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (paintable);
GdkDrawableImplQuartz *drawable_impl;
@ -353,10 +353,10 @@ gdk_window_quartz_update_idle (gpointer data)
}
static void
gdk_window_impl_quartz_invalidate_maybe_recurse (GdkPaintable *paintable,
GdkRegion *region,
gboolean (*child_func) (GdkWindow *, gpointer),
gpointer user_data)
gdk_window_impl_quartz_invalidate_maybe_recurse (GdkPaintable *paintable,
const GdkRegion *region,
gboolean (*child_func) (GdkWindow *, gpointer),
gpointer user_data)
{
GdkWindowImplQuartz *window_impl = GDK_WINDOW_IMPL_QUARTZ (paintable);
GdkDrawableImplQuartz *drawable_impl = (GdkDrawableImplQuartz *) window_impl;
@ -1098,9 +1098,6 @@ gdk_window_hide (GdkWindow *window)
if (impl->toplevel)
{
NSRect content_rect;
NSRect frame_rect;
/* Update main window. */
main_window_stack = g_slist_remove (main_window_stack, window);
if ([NSApp mainWindow] == impl->toplevel)