talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 9b0f657019e68cccfb86768f837540881c0e1790
parent b3956720e05ea5cbc685e52924044f351d794b68
Author: Michael Rasmussen <mir@datanom.net>
Date:   Sat,  2 Mar 2019 13:25:13 +0100

Remove useless debug code. Add copyright

Signed-off-by: Michael Rasmussen <mir@datanom.net>

Diffstat:
Msrc/plugins/litehtml_viewer/container_linux.cpp | 6++----
Msrc/plugins/litehtml_viewer/container_linux.h | 17+++++++++++++++++
Msrc/plugins/litehtml_viewer/http.cpp | 17+++++++++++++++++
Msrc/plugins/litehtml_viewer/http.h | 17+++++++++++++++++
Msrc/plugins/litehtml_viewer/lh_viewer.c | 6++----
Msrc/plugins/litehtml_viewer/lh_viewer.h | 17+++++++++++++++++
Msrc/plugins/litehtml_viewer/lh_widget.cpp | 11++++-------
Msrc/plugins/litehtml_viewer/lh_widget.h | 17+++++++++++++++++
Msrc/plugins/litehtml_viewer/lh_widget_wrapped.h | 17+++++++++++++++++
Msrc/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 @@ -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 - * <iwkse@claws-mail.org> 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 @@ -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 <vector> diff --git 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 @@ -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 <glib.h> #include <glib/gstdio.h> #include <fcntl.h> diff --git 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 - * <iwkse@claws-mail.org> 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 @@ -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 <mimeview.h> #include "lh_widget_wrapped.h" diff --git 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 - * <iwkse@claws-mail.org> 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 @@ -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 <gtk/gtk.h> #include <glib.h> #include <gio/gio.h> diff --git 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 @@ -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 - * <iwkse@claws-mail.org> 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