From 1ce328ee1e61beeb9b4d94ab197e7dd0fd18eef8 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Thu, 23 Jan 2014 10:56:33 +0100 Subject: We need to call gtk_window_set_has_resize_grip also with GTK3 now Not only with Ubuntu/GTK2 --- mate-panel/panel-toplevel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c index 3c21135b..6df4f9b8 100644 --- a/mate-panel/panel-toplevel.c +++ b/mate-panel/panel-toplevel.c @@ -4611,13 +4611,13 @@ panel_toplevel_init (PanelToplevel *toplevel) int i; /* This is a hack for the default resize grip on Ubuntu. - * Once again, thank you Ubuntu. - * * We need to add a --enable-ubuntu for this. + * Now, it is also default in GTK3. */ - #ifdef UBUNTU - gtk_window_set_has_resize_grip(&toplevel->window_instance, FALSE); - #endif +#if defined(UBUNTU) || GTK_CHECK_VERSION (3, 0, 0) + gtk_window_set_has_resize_grip(&toplevel->window_instance, FALSE); +#endif + toplevel->priv = PANEL_TOPLEVEL_GET_PRIVATE (toplevel); toplevel->priv->expand = TRUE; -- cgit v1.2.1