diff options
author | Stefano Karapetsas <[email protected]> | 2014-04-23 19:06:44 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-04-23 19:06:44 +0200 |
commit | ab8e72a4e6fe7cb8ee2dddb0d43d749078fd999c (patch) | |
tree | 6e44037dae5cf6b77b354826e627239eaec4c995 /src/ui/theme.c | |
parent | c758b429a0cf4045e3871e12936c36713fa607ef (diff) | |
download | marco-ab8e72a4e6fe7cb8ee2dddb0d43d749078fd999c.tar.bz2 marco-ab8e72a4e6fe7cb8ee2dddb0d43d749078fd999c.tar.xz |
GTK3 fixes
Diffstat (limited to 'src/ui/theme.c')
-rw-r--r-- | src/ui/theme.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index be948369..2ddb1485 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -410,10 +410,14 @@ meta_frame_layout_get_borders (const MetaFrameLayout *layout, { int buttons_height, title_height; +#if GTK_CHECK_VERSION(3, 0, 0) + g_return_if_fail (layout != NULL); +#else g_return_if_fail (top_height != NULL); g_return_if_fail (bottom_height != NULL); g_return_if_fail (left_width != NULL); g_return_if_fail (right_width != NULL); +#endif if (!layout->has_title) text_height = 0; |