diff options
author | Benjamin Otte <otte@redhat.com> | 2016-11-07 01:33:43 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-11-07 01:33:43 +0100 |
commit | d2c26c471c574acc9199d8f032ae2a9d0894481b (patch) | |
tree | 124a97aac4fa75d359e334267344e208a5c203fe /gdk/mir | |
parent | 9fe8b1e11240f5d853711c8e8fc4d2a0aa943c09 (diff) | |
download | gtk+-d2c26c471c574acc9199d8f032ae2a9d0894481b.tar.gz |
gdk: Remove attributes_mask from gdk_window_new()
The only remaining values were always treated as 0, so we just hardcode
them to 0.
Diffstat (limited to 'gdk/mir')
-rw-r--r-- | gdk/mir/gdkmir-private.h | 2 | ||||
-rw-r--r-- | gdk/mir/gdkmirdisplay.c | 5 | ||||
-rw-r--r-- | gdk/mir/gdkmirscreen.c | 2 | ||||
-rw-r--r-- | gdk/mir/gdkmirwindowimpl.c | 2 |
4 files changed, 5 insertions, 6 deletions
diff --git a/gdk/mir/gdkmir-private.h b/gdk/mir/gdkmir-private.h index 38f1d7a29d..69f927fab9 100644 --- a/gdk/mir/gdkmir-private.h +++ b/gdk/mir/gdkmir-private.h @@ -83,7 +83,7 @@ GdkCursor *_gdk_mir_cursor_new_for_name (GdkDisplay *display, const gchar *name) const gchar *_gdk_mir_cursor_get_name (GdkCursor *cursor); -GdkWindowImpl *_gdk_mir_window_impl_new (GdkDisplay *display, GdkWindow *window, GdkWindowAttr *attributes, gint attributes_mask); +GdkWindowImpl *_gdk_mir_window_impl_new (GdkDisplay *display, GdkWindow *window); void _gdk_mir_window_impl_set_surface_state (GdkMirWindowImpl *impl, MirSurfaceState state); diff --git a/gdk/mir/gdkmirdisplay.c b/gdk/mir/gdkmirdisplay.c index 0a44b7d1e5..c42962e389 100644 --- a/gdk/mir/gdkmirdisplay.c +++ b/gdk/mir/gdkmirdisplay.c @@ -393,8 +393,7 @@ gdk_mir_display_create_window_impl (GdkDisplay *display, GdkWindow *real_parent, GdkScreen *screen, GdkEventMask event_mask, - GdkWindowAttr *attributes, - gint attributes_mask) + GdkWindowAttr *attributes) { //g_printerr ("gdk_mir_display_create_window_impl"); //g_printerr (" window=%p", window); @@ -404,7 +403,7 @@ gdk_mir_display_create_window_impl (GdkDisplay *display, if (attributes->wclass == GDK_INPUT_OUTPUT) { - window->impl = _gdk_mir_window_impl_new (display, window, attributes, attributes_mask); + window->impl = _gdk_mir_window_impl_new (display, window); window->impl_window = window; } else /* attributes->wclass == GDK_INPUT_ONLY */ diff --git a/gdk/mir/gdkmirscreen.c b/gdk/mir/gdkmirscreen.c index f9eea36cf6..668da6073b 100644 --- a/gdk/mir/gdkmirscreen.c +++ b/gdk/mir/gdkmirscreen.c @@ -255,7 +255,7 @@ gdk_mir_screen_get_root_window (GdkScreen *screen) s->root_window->width = width; s->root_window->height = height; s->root_window->viewable = TRUE; - s->root_window->impl = _gdk_mir_window_impl_new (s->display, s->root_window, NULL, 0); + s->root_window->impl = _gdk_mir_window_impl_new (s->display, s->root_window); return s->root_window; } diff --git a/gdk/mir/gdkmirwindowimpl.c b/gdk/mir/gdkmirwindowimpl.c index 3ed04669c7..ec76ac554c 100644 --- a/gdk/mir/gdkmirwindowimpl.c +++ b/gdk/mir/gdkmirwindowimpl.c @@ -166,7 +166,7 @@ get_default_title (void) } GdkWindowImpl * -_gdk_mir_window_impl_new (GdkDisplay *display, GdkWindow *window, GdkWindowAttr *attributes, gint attributes_mask) +_gdk_mir_window_impl_new (GdkDisplay *display, GdkWindow *window) { GdkMirWindowImpl *impl = g_object_new (GDK_TYPE_MIR_WINDOW_IMPL, NULL); |