Blame libmetacity/meta-frame-borders.c

Packit 5e0819
/*
Packit 5e0819
 * Copyright (C) 2001 Havoc Pennington
Packit 5e0819
 * Copyright (C) 2016 Alberts Muktupāvels
Packit 5e0819
 *
Packit 5e0819
 * This program is free software: you can redistribute it and/or modify
Packit 5e0819
 * it under the terms of the GNU General Public License as published by
Packit 5e0819
 * the Free Software Foundation, either version 2 of the License, or
Packit 5e0819
 * (at your option) any later version.
Packit 5e0819
 *
Packit 5e0819
 * This program is distributed in the hope that it will be useful,
Packit 5e0819
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 5e0819
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Packit 5e0819
 * GNU General Public License for more details.
Packit 5e0819
 *
Packit 5e0819
 * You should have received a copy of the GNU General Public License
Packit 5e0819
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
Packit 5e0819
 */
Packit 5e0819
Packit 5e0819
#include "config.h"
Packit 5e0819
Packit 5e0819
#include "meta-frame-borders.h"
Packit 5e0819
Packit 5e0819
static void
Packit 5e0819
clear_border (GtkBorder *border)
Packit 5e0819
{
Packit 5e0819
  border->left = 0;
Packit 5e0819
  border->right = 0;
Packit 5e0819
  border->top = 0;
Packit 5e0819
  border->bottom = 0;
Packit 5e0819
}
Packit 5e0819
Packit 5e0819
void
Packit 5e0819
meta_frame_borders_clear (MetaFrameBorders *borders)
Packit 5e0819
{
Packit 5e0819
  clear_border (&borders->visible);
Packit 5e0819
  clear_border (&borders->shadow);
Packit 5e0819
  clear_border (&borders->resize);
Packit 5e0819
  clear_border (&borders->invisible);
Packit 5e0819
  clear_border (&borders->total);
Packit 5e0819
}