summaryrefslogtreecommitdiff
path: root/baobab/src/baobab-ringschart.c
diff options
context:
space:
mode:
Diffstat (limited to 'baobab/src/baobab-ringschart.c')
-rw-r--r--baobab/src/baobab-ringschart.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/baobab/src/baobab-ringschart.c b/baobab/src/baobab-ringschart.c
index 3408ecd5..7b568673 100644
--- a/baobab/src/baobab-ringschart.c
+++ b/baobab/src/baobab-ringschart.c
@@ -1,22 +1,20 @@
-/*
- * baobab-ringschart.c
+/* Copyright (C) 2008 Igalia
+ * Copyright (C) 2012-2021 MATE Developers
*
- * Copyright (C) 2008 Igalia
+ * This file is part of MATE Utils.
*
- * This program is free software; you can redistribute it and/or modify
+ * MATE Utils is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * MATE Utils is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor,
- * Boston, MA 02110-1301 USA
+ * along with MATE Utils. If not, see <https://www.gnu.org/licenses/>.
*
* Authors:
* Felipe Erias <[email protected]>
@@ -98,7 +96,6 @@ static void baobab_ringschart_get_item_rectangle (GtkWidget *chart,
static void baobab_ringschart_pre_draw (GtkWidget *chart, cairo_t *cr);
static void baobab_ringschart_post_draw (GtkWidget *chart, cairo_t *cr);
-
static void
baobab_ringschart_class_init (BaobabRingschartClass *class)
{
@@ -366,7 +363,7 @@ baobab_ringschart_get_item_rectangle (GtkWidget *chart,
item->rect = rect;
}
-gboolean
+static gboolean
baobab_ringschart_subfolder_tips_timeout (gpointer data)
{
BaobabRingschartPrivate *priv;
@@ -380,7 +377,7 @@ baobab_ringschart_subfolder_tips_timeout (gpointer data)
return FALSE;
}
-void
+static void
baobab_ringschart_clean_subforlder_tips_state (GtkWidget *chart)
{
BaobabRingschartPrivate *priv;
@@ -520,7 +517,7 @@ baobab_ringschart_draw_subfolder_tips (GtkWidget *chart, cairo_t *cr)
/* get the GdkRectangle of the tooltip (with a little padding) */
_rect.x = (int) (tooltip_rect.x - 1.0);
_rect.y = (int) (tooltip_rect.y - 1.0);
- _rect.width = (int) (tooltip_rect.width + 2,0);
+ _rect.width = (int) (tooltip_rect.width + 2.0);
_rect.height = (int) (tooltip_rect.height + 2.0);
/* Check if tooltip overlaps */