diff options
Diffstat (limited to 'baobab/src/baobab-chart.c')
-rw-r--r-- | baobab/src/baobab-chart.c | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/baobab/src/baobab-chart.c b/baobab/src/baobab-chart.c index 97dc2c77..d8350511 100644 --- a/baobab/src/baobab-chart.c +++ b/baobab/src/baobab-chart.c @@ -1,22 +1,20 @@ -/* - * baobab-chart.c +/* Copyright (C) 2006, 2007, 2008 Igalia + * Copyright (C) 2012-2021 MATE Developers * - * Copyright (C) 2006, 2007, 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]> @@ -31,7 +29,10 @@ * Alejandro Garcia <[email protected]> */ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif + #include <gtk/gtk.h> #include <glib/gi18n.h> @@ -166,7 +167,6 @@ static gboolean baobab_chart_query_tooltip (GtkWidget *widget, GtkTooltip *tooltip, gpointer user_data); - static void baobab_chart_class_init (BaobabChartClass *class) { @@ -522,8 +522,6 @@ baobab_chart_get_items (GtkWidget *chart, GtkTreePath *root) return; } - - model_root_path = gtk_tree_path_new_first (); gtk_tree_model_get_iter (priv->model, &model_root_iter, model_root_path); gtk_tree_path_free (model_root_path); @@ -656,7 +654,6 @@ baobab_chart_update_draw (BaobabChart* chart, if (priv->root == NULL) root_path = gtk_tree_path_new_first (); - root_depth = gtk_tree_path_get_depth (root_path); node_depth = gtk_tree_path_get_depth (path); @@ -1170,7 +1167,7 @@ baobab_chart_query_tooltip (GtkWidget *widget, return TRUE; } -GdkPixbuf* +static GdkPixbuf* baobab_chart_get_pixbuf (GtkWidget *widget) { gint w, h; @@ -1181,7 +1178,6 @@ baobab_chart_get_pixbuf (GtkWidget *widget) w = gdk_window_get_width(gtk_widget_get_window(widget)); h = gdk_window_get_height(gtk_widget_get_window(widget)); - pixbuf = gdk_pixbuf_get_from_window ( gtk_widget_get_window (widget), 0, 0, |