From 41fd630c71a3adfe817333419dea705ed654fad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Loi=CC=88c=20Correnson?= <loic.correnson@cea.fr> Date: Mon, 21 Jan 2019 15:07:07 +0100 Subject: [PATCH] [gui] headers for gtk-3 compatibility layer --- headers/header_spec.txt | 9 +++++++++ src/plugins/gui/GSourceView2.ml.in | 22 ++++++++++++++++++++++ src/plugins/gui/GSourceView2.mli.in | 22 ++++++++++++++++++++++ src/plugins/gui/GSourceView3.ml.in | 22 ++++++++++++++++++++++ src/plugins/gui/GSourceView3.mli.in | 22 ++++++++++++++++++++++ src/plugins/gui/dgraph.ml.in | 22 ++++++++++++++++++++++ src/plugins/gui/dgraph.mli.in | 22 ++++++++++++++++++++++ src/plugins/gui/gtk_compat.2.ml | 22 ++++++++++++++++++++++ src/plugins/gui/gtk_compat.3.ml | 22 ++++++++++++++++++++++ src/plugins/gui/gtk_compat.mli | 22 ++++++++++++++++++++++ 10 files changed, 207 insertions(+) diff --git a/headers/header_spec.txt b/headers/header_spec.txt index 53fa80a1a72..0a279499223 100644 --- a/headers/header_spec.txt +++ b/headers/header_spec.txt @@ -755,6 +755,10 @@ src/plugins/from/from_register_gui.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/from/from_register_gui.mli: CEA_LGPL_OR_PROPRIETARY src/plugins/from/functionwise.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/from/functionwise.mli: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/GSourceView2.ml.in: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/GSourceView2.mli.in: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/GSourceView3.ml.in: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/GSourceView3.mli.in: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/analyses_manager.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/analyses_manager.mli: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/book_manager.ml: CEA_LGPL_OR_PROPRIETARY @@ -763,10 +767,15 @@ src/plugins/gui/debug_manager.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/debug_manager.mli: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/design.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/design.mli: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/dgraph.ml.in: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/dgraph.mli.in: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/file_manager.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/file_manager.mli: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/filetree.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/filetree.mli: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/gtk_compat.mli: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/gtk_compat.2.ml: CEA_LGPL_OR_PROPRIETARY +src/plugins/gui/gtk_compat.3.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/gtk_form.ml: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/gtk_form.mli: CEA_LGPL_OR_PROPRIETARY src/plugins/gui/gtk_helper.ml: CEA_LGPL_OR_PROPRIETARY diff --git a/src/plugins/gui/GSourceView2.ml.in b/src/plugins/gui/GSourceView2.ml.in index e85f92d2c28..89f79dcaf14 100644 --- a/src/plugins/gui/GSourceView2.ml.in +++ b/src/plugins/gui/GSourceView2.ml.in @@ -1,3 +1,25 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + (** compatibility layer between gtksourceview 2 and 3. *) include GSourceView2 diff --git a/src/plugins/gui/GSourceView2.mli.in b/src/plugins/gui/GSourceView2.mli.in index ecf2e07bc1d..161de3e384c 100644 --- a/src/plugins/gui/GSourceView2.mli.in +++ b/src/plugins/gui/GSourceView2.mli.in @@ -1,3 +1,25 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + (* compatibility between gtksourceview 2 and 3. *) include module type of GSourceView2 diff --git a/src/plugins/gui/GSourceView3.ml.in b/src/plugins/gui/GSourceView3.ml.in index 898e39b4ab4..ddce6f7a849 100644 --- a/src/plugins/gui/GSourceView3.ml.in +++ b/src/plugins/gui/GSourceView3.ml.in @@ -1,3 +1,25 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + (** compatibility layer between gtksourceview 2 and 3. *) include GSourceView3 diff --git a/src/plugins/gui/GSourceView3.mli.in b/src/plugins/gui/GSourceView3.mli.in index d37fea5f1b9..4433f0ee169 100644 --- a/src/plugins/gui/GSourceView3.mli.in +++ b/src/plugins/gui/GSourceView3.mli.in @@ -1,3 +1,25 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + (* compatibility between gtksourceview 2 and 3. *) include module type of GSourceView3 diff --git a/src/plugins/gui/dgraph.ml.in b/src/plugins/gui/dgraph.ml.in index 030f9fa5843..5271e01436f 100644 --- a/src/plugins/gui/dgraph.ml.in +++ b/src/plugins/gui/dgraph.ml.in @@ -1,3 +1,25 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + (* dgraph module that always generates an error: Dgraph is not available with gtk3 *) diff --git a/src/plugins/gui/dgraph.mli.in b/src/plugins/gui/dgraph.mli.in index 33751178dd2..902aed1c043 100644 --- a/src/plugins/gui/dgraph.mli.in +++ b/src/plugins/gui/dgraph.mli.in @@ -1,3 +1,25 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + (* dgraph module that always generates an error: Dgraph is not available with gtk3 *) diff --git a/src/plugins/gui/gtk_compat.2.ml b/src/plugins/gui/gtk_compat.2.ml index b47503f2951..dd739106fd6 100644 --- a/src/plugins/gui/gtk_compat.2.ml +++ b/src/plugins/gui/gtk_compat.2.ml @@ -1,2 +1,24 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + let get_toolbar_index (toolbar:GButton.toolbar) (item:GButton.tool_item) = toolbar#get_item_index item diff --git a/src/plugins/gui/gtk_compat.3.ml b/src/plugins/gui/gtk_compat.3.ml index 6592b261c24..e790d9ea307 100644 --- a/src/plugins/gui/gtk_compat.3.ml +++ b/src/plugins/gui/gtk_compat.3.ml @@ -1 +1,23 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + let get_toolbar_index toolbar item = toolbar#get_item_index item#as_tool_item diff --git a/src/plugins/gui/gtk_compat.mli b/src/plugins/gui/gtk_compat.mli index 8352ffadc6c..f7d4afd6d16 100644 --- a/src/plugins/gui/gtk_compat.mli +++ b/src/plugins/gui/gtk_compat.mli @@ -1 +1,23 @@ +(**************************************************************************) +(* *) +(* This file is part of Frama-C. *) +(* *) +(* Copyright (C) 2007-2018 *) +(* CEA (Commissariat à l'énergie atomique et aux énergies *) +(* alternatives) *) +(* *) +(* you can redistribute it and/or modify it under the terms of the GNU *) +(* Lesser General Public License as published by the Free Software *) +(* Foundation, version 2.1. *) +(* *) +(* It 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 Lesser General Public License for more details. *) +(* *) +(* See the GNU Lesser General Public License version 2.1 *) +(* for more details (enclosed in the file licenses/LGPLv2.1). *) +(* *) +(**************************************************************************) + val get_toolbar_index: GButton.toolbar -> GButton.tool_item -> int -- GitLab