diff options
author | rcaridade145 <[email protected]> | 2020-02-06 20:02:12 +0000 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-02-21 16:58:34 +0100 |
commit | 9f9647d27b1d7d01b39241ee3a86f3dfc24196e0 (patch) | |
tree | 99842fc5346fcb44a0a272cd46f176611de30a34 /src/ui/theme.c | |
parent | 7adcd70ebf293c0d40b848afc2fa40e7dc23ac67 (diff) | |
download | marco-9f9647d27b1d7d01b39241ee3a86f3dfc24196e0.tar.bz2 marco-9f9647d27b1d7d01b39241ee3a86f3dfc24196e0.tar.xz |
theme: avoid deprecated g_memmove
https://gitlab.gnome.org/GNOME/glib/commit/6554c91b
https://gitlab.gnome.org/GNOME/glib/commit/6e4a7fca
based on https://gitlab.gnome.org/GNOME/metacity/commit/359f60a6
Diffstat (limited to 'src/ui/theme.c')
-rw-r--r-- | src/ui/theme.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index 6c9636ec..4c3c20b1 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -1008,7 +1008,7 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout, } else - g_memmove (&(rect->clickable), &(rect->visible), sizeof(rect->clickable)); + memmove (&(rect->clickable), &(rect->visible), sizeof(rect->clickable)); *(right_bg_rects[i]) = rect->visible; @@ -1043,7 +1043,7 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout, rect->clickable.height = button_height; } else - g_memmove (&(rect->clickable), &(rect->visible), sizeof(rect->clickable)); + memmove (&(rect->clickable), &(rect->visible), sizeof(rect->clickable)); x = rect->visible.x + rect->visible.width + layout->button_border.right; if (left_buttons_has_spacer[i]) @@ -2530,7 +2530,7 @@ do_operations (PosExpr *exprs, */ if ((i+2) < *n_exprs) { - g_memmove (&exprs[i], &exprs[i+2], + memmove (&exprs[i], &exprs[i+2], sizeof (PosExpr) * (*n_exprs - i - 2)); } |