From 9b0f657019e68cccfb86768f837540881c0e1790 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sat, 2 Mar 2019 13:25:13 +0100 Subject: [PATCH] Remove useless debug code. Add copyright Signed-off-by: Michael Rasmussen --- src/plugins/litehtml_viewer/container_linux.cpp | 6 ++---- src/plugins/litehtml_viewer/container_linux.h | 17 +++++++++++++++++ src/plugins/litehtml_viewer/http.cpp | 17 +++++++++++++++++ src/plugins/litehtml_viewer/http.h | 17 +++++++++++++++++ src/plugins/litehtml_viewer/lh_viewer.c | 6 ++---- src/plugins/litehtml_viewer/lh_viewer.h | 17 +++++++++++++++++ src/plugins/litehtml_viewer/lh_widget.cpp | 11 ++++------- src/plugins/litehtml_viewer/lh_widget.h | 17 +++++++++++++++++ src/plugins/litehtml_viewer/lh_widget_wrapped.h | 17 +++++++++++++++++ src/plugins/litehtml_viewer/plugin.c | 6 ++---- 10 files changed, 112 insertions(+), 19 deletions(-) diff --git a/src/plugins/litehtml_viewer/container_linux.cpp b/src/plugins/litehtml_viewer/container_linux.cpp index 15f8836ad..9a11757e6 100644 --- a/src/plugins/litehtml_viewer/container_linux.cpp +++ b/src/plugins/litehtml_viewer/container_linux.cpp @@ -1,9 +1,7 @@ /* * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client - * Copyright(C) 1999-2015 the Claws Mail Team - * == Fancy Plugin == - * This file Copyright (C) 2009-2015 Salvatore De Paolis - * and the Claws Mail Team + * Copyright(C) 2019 the Claws Mail Team + * * This program 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 3 of the License, or diff --git a/src/plugins/litehtml_viewer/container_linux.h b/src/plugins/litehtml_viewer/container_linux.h index 8132bfb50..a68502dd1 100644 --- a/src/plugins/litehtml_viewer/container_linux.h +++ b/src/plugins/litehtml_viewer/container_linux.h @@ -1,3 +1,20 @@ +/* + * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client + * Copyright(C) 2019 the Claws Mail Team + * + * This program 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 3 of the License, or + * (at your option) any later version. + * This program 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 tothe Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #pragma once #include diff --git a/src/plugins/litehtml_viewer/http.cpp b/src/plugins/litehtml_viewer/http.cpp index 21e53fc86..dba8e6d6e 100644 --- a/src/plugins/litehtml_viewer/http.cpp +++ b/src/plugins/litehtml_viewer/http.cpp @@ -1,3 +1,20 @@ +/* + * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client + * Copyright(C) 2019 the Claws Mail Team + * + * This program 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 3 of the License, or + * (at your option) any later version. + * This program 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 tothe Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/plugins/litehtml_viewer/http.h b/src/plugins/litehtml_viewer/http.h index 0e3621251..d533dc59d 100644 --- a/src/plugins/litehtml_viewer/http.h +++ b/src/plugins/litehtml_viewer/http.h @@ -1,3 +1,20 @@ +/* + * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client + * Copyright(C) 2019 the Claws Mail Team + * + * This program 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 3 of the License, or + * (at your option) any later version. + * This program 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 tothe Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #include #include #include diff --git a/src/plugins/litehtml_viewer/lh_viewer.c b/src/plugins/litehtml_viewer/lh_viewer.c index 93dd02cae..011bbe883 100644 --- a/src/plugins/litehtml_viewer/lh_viewer.c +++ b/src/plugins/litehtml_viewer/lh_viewer.c @@ -1,9 +1,7 @@ /* * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client - * Copyright(C) 1999-2015 the Claws Mail Team - * == Fancy Plugin == - * This file Copyright (C) 2009-2015 Salvatore De Paolis - * and the Claws Mail Team + * Copyright(C) 2019 the Claws Mail Team + * * This program 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 3 of the License, or diff --git a/src/plugins/litehtml_viewer/lh_viewer.h b/src/plugins/litehtml_viewer/lh_viewer.h index d733642cf..c22727c51 100644 --- a/src/plugins/litehtml_viewer/lh_viewer.h +++ b/src/plugins/litehtml_viewer/lh_viewer.h @@ -1,3 +1,20 @@ +/* + * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client + * Copyright(C) 2019 the Claws Mail Team + * + * This program 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 3 of the License, or + * (at your option) any later version. + * This program 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 tothe Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #include #include "lh_widget_wrapped.h" diff --git a/src/plugins/litehtml_viewer/lh_widget.cpp b/src/plugins/litehtml_viewer/lh_widget.cpp index e75ec4a0a..eb3ec2e35 100644 --- a/src/plugins/litehtml_viewer/lh_widget.cpp +++ b/src/plugins/litehtml_viewer/lh_widget.cpp @@ -1,9 +1,7 @@ /* * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client - * Copyright(C) 1999-2015 the Claws Mail Team - * == Fancy Plugin == - * This file Copyright (C) 2009-2015 Salvatore De Paolis - * and the Claws Mail Team + * Copyright(C) 2019 the Claws Mail Team + * * This program 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 3 of the License, or @@ -474,7 +472,7 @@ static gboolean button_press_event(GtkWidget *widget, GdkEventButton *event, if (w->m_html == NULL) return false; - debug_print("lh_widget on_button_press_event\n"); + //debug_print("lh_widget on_button_press_event\n"); if (event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) @@ -511,7 +509,6 @@ static gboolean motion_notify_event(GtkWidget *widget, GdkEventButton *event, if(w->m_html) { - //if(m_cursor == _t("pointer")) if(w->m_html->on_mouse_over((int) event->x, (int) event->y, (int) event->x, (int) event->y, redraw_boxes)) { for (auto& pos : redraw_boxes) @@ -535,7 +532,7 @@ static gboolean button_release_event(GtkWidget *widget, GdkEventButton *event, if (w->m_html == NULL) return false; - debug_print("lh_widget on_button_release_event\n"); + //debug_print("lh_widget on_button_release_event\n"); if (event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) diff --git a/src/plugins/litehtml_viewer/lh_widget.h b/src/plugins/litehtml_viewer/lh_widget.h index 55fc56dc3..5ca1d38b0 100644 --- a/src/plugins/litehtml_viewer/lh_widget.h +++ b/src/plugins/litehtml_viewer/lh_widget.h @@ -1,3 +1,20 @@ +/* + * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client + * Copyright(C) 2019 the Claws Mail Team + * + * This program 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 3 of the License, or + * (at your option) any later version. + * This program 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 tothe Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #include #include #include diff --git a/src/plugins/litehtml_viewer/lh_widget_wrapped.h b/src/plugins/litehtml_viewer/lh_widget_wrapped.h index 24dcb57fe..8d3e2eb1e 100644 --- a/src/plugins/litehtml_viewer/lh_widget_wrapped.h +++ b/src/plugins/litehtml_viewer/lh_widget_wrapped.h @@ -1,3 +1,20 @@ +/* + * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client + * Copyright(C) 2019 the Claws Mail Team + * + * This program 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 3 of the License, or + * (at your option) any later version. + * This program 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 tothe Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #ifndef __LH_WIDGET_WRAPPED_H #define __LH_WIDGET_WRAPPED_H diff --git a/src/plugins/litehtml_viewer/plugin.c b/src/plugins/litehtml_viewer/plugin.c index bfdc48e94..32705d8b3 100644 --- a/src/plugins/litehtml_viewer/plugin.c +++ b/src/plugins/litehtml_viewer/plugin.c @@ -1,9 +1,7 @@ /* * Claws Mail -- A GTK+ based, lightweight, and fast e-mail client - * Copyright(C) 1999-2015 the Claws Mail Team - * == Fancy Plugin == - * This file Copyright (C) 2009-2015 Salvatore De Paolis - * and the Claws Mail Team + * Copyright(C) 2019 the Claws Mail Team + * * This program 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 3 of the License, or -- 2.25.1