diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-29 04:43:04 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-29 18:04:08 +0000 |
commit | f0ef5332bee59686b5657a12183c1ec42a104527 (patch) | |
tree | befec75f2cbca4de684ff5ca4ca07406c83645cc | |
parent | 0103c13632038b3630599e8bd057d5c0c2d9b024 (diff) | |
download | gtk+-f0ef5332bee59686b5657a12183c1ec42a104527.tar.gz |
a11y: Stop using gdk_surface_get_frame_extnts
This api is going away.
-rw-r--r-- | gtk/a11y/gtkwindowaccessible.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c index be5e67a7e0..1774f5f63b 100644 --- a/gtk/a11y/gtkwindowaccessible.c +++ b/gtk/a11y/gtkwindowaccessible.c @@ -373,7 +373,6 @@ gtk_window_accessible_get_extents (AtkComponent *component, { GtkWidget *widget; GdkSurface *surface; - GdkRectangle rect; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component)); if (widget == NULL) @@ -383,12 +382,10 @@ gtk_window_accessible_get_extents (AtkComponent *component, if (surface == NULL) return; - gdk_surface_get_frame_extents (surface, &rect); - *x = 0; *y = 0; - *width = rect.width; - *height = rect.height; + *width = gdk_surface_get_width (surface); + *height = gdk_surface_get_height (surface); if (!gtk_widget_is_drawable (widget)) { *x = G_MININT; @@ -404,7 +401,6 @@ gtk_window_accessible_get_size (AtkComponent *component, { GtkWidget *widget; GdkSurface *surface; - GdkRectangle rect; widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component)); if (widget == NULL) @@ -414,10 +410,8 @@ gtk_window_accessible_get_size (AtkComponent *component, if (surface == NULL) return; - gdk_surface_get_frame_extents (surface, &rect); - - *width = rect.width; - *height = rect.height; + *width = gdk_surface_get_width (surface); + *height = gdk_surface_get_height (surface); } void |