From 796dc682bcc60e8756009b59466e176c71099f75 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 26 Jun 2014 19:47:39 -0400 Subject: [PATCH] gtkwindow: Refactor out some similar code for grips --- gtk/gtkwindow.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 9a69f6d565..45db97374e 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -7449,16 +7449,12 @@ gtk_window_style_updated (GtkWidget *widget) GtkWindow *window = GTK_WINDOW (widget); GtkWindowPrivate *priv = window->priv; GdkRGBA transparent = { 0.0, 0.0, 0.0, 0.0 }; - GdkRectangle rect; GTK_WIDGET_CLASS (gtk_window_parent_class)->style_updated (widget); - if (priv->grip_window != NULL && gtk_window_get_resize_grip_area (window, &rect)) + if (priv->grip_window != NULL) { - gdk_window_move_resize (priv->grip_window, - rect.x, rect.y, - rect.width, rect.height); - + set_grip_position (window); set_grip_shape (window); }