[gtk/parent-surface: 2/4] tests: Stop using gtk_widget_get_parent_surface
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/parent-surface: 2/4] tests: Stop using gtk_widget_get_parent_surface
- Date: Thu, 25 Apr 2019 00:58:05 +0000 (UTC)
commit fe3b5ba545d513dffca68ab683628e62895589e3
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Apr 24 20:56:43 2019 -0400
tests: Stop using gtk_widget_get_parent_surface
We can just use the surface of the parent.
tests/testfullscreen.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testfullscreen.c b/tests/testfullscreen.c
index acdbd15bb0..0ed79b91c2 100644
--- a/tests/testfullscreen.c
+++ b/tests/testfullscreen.c
@@ -25,7 +25,7 @@ set_fullscreen_monitor_cb (GtkWidget *widget, gpointer user_data)
GdkFullscreenMode mode = (GdkFullscreenMode) GPOINTER_TO_INT (user_data);
GdkSurface *window;
- window = gtk_widget_get_parent_surface (widget);
+ window = gtk_widget_get_surface (gtk_widget_get_parent (widget));
gdk_surface_set_fullscreen_mode (window, mode);
gdk_surface_fullscreen (window);
}
@@ -35,7 +35,7 @@ remove_fullscreen_cb (GtkWidget *widget, gpointer user_data)
{
GdkSurface *window;
- window = gtk_widget_get_parent_surface (widget);
+ window = gtk_widget_get_surface (gtk_widget_get_parent (widget));
gdk_surface_unfullscreen (window);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]