Some forgotten deprecation cleanup

This commit is contained in:
Matthias Clasen
2016-10-20 13:58:49 -04:00
parent 0ca9b468b8
commit b109d25e8b
2 changed files with 4 additions and 0 deletions

View File

@ -11446,6 +11446,7 @@ gtk_window_parse_geometry (GtkWindow *window,
if ((result & YValue) == 0)
y = 0;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (grav == GDK_GRAVITY_SOUTH_WEST ||
grav == GDK_GRAVITY_SOUTH_EAST)
y = gdk_screen_get_height (screen) - h + y;
@ -11453,6 +11454,7 @@ gtk_window_parse_geometry (GtkWindow *window,
if (grav == GDK_GRAVITY_SOUTH_EAST ||
grav == GDK_GRAVITY_NORTH_EAST)
x = gdk_screen_get_width (screen) - w + x;
G_GNUC_END_IGNORE_DEPRECATIONS
/* we don't let you put a window offscreen; maybe some people would
* prefer to be able to, but it's kind of a bogus thing to do.

View File

@ -1624,7 +1624,9 @@ on_status_toplevel_configure (GtkWidget *toplevel,
if (status_window->window)
{
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
height = gdk_screen_get_height (gtk_widget_get_screen (toplevel));
G_GNUC_END_IGNORE_DEPRECATIONS
gdk_window_get_frame_extents (gtk_widget_get_window (toplevel),
&rect);