diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-23 10:56:33 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-23 10:56:33 +0100 |
commit | 1ce328ee1e61beeb9b4d94ab197e7dd0fd18eef8 (patch) | |
tree | d6b523832c4fb673f341578b7e206a4bd3e88d1a | |
parent | 0dd85b49acf5b6076a66288ab6f2bf856c34c38e (diff) | |
download | mate-panel-1ce328ee1e61beeb9b4d94ab197e7dd0fd18eef8.tar.bz2 mate-panel-1ce328ee1e61beeb9b4d94ab197e7dd0fd18eef8.tar.xz |
We need to call gtk_window_set_has_resize_grip also with GTK3 now
Not only with Ubuntu/GTK2
-rw-r--r-- | mate-panel/panel-toplevel.c | 10 |
1 files 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; |