diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2018-09-30 23:49:49 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2018-10-01 22:50:12 +0000 |
| commit | 71f15d1e96dab3a48fd8e544561f1830795b56ed (patch) | |
| tree | 43579c16ebba5afc977b059b9ddc057e40fb4dae /src/ui | |
| parent | Use _WIN32 instead of WIN32 (diff) | |
| download | inkscape-71f15d1e96dab3a48fd8e544561f1830795b56ed.tar.gz inkscape-71f15d1e96dab3a48fd8e544561f1830795b56ed.zip | |
Remove #include "config.h" wherever possible
Diffstat (limited to 'src/ui')
126 files changed, 27 insertions, 463 deletions
diff --git a/src/ui/cache/svg_preview_cache.cpp b/src/ui/cache/svg_preview_cache.cpp index 5d369c9fa..d83f3dd61 100644 --- a/src/ui/cache/svg_preview_cache.cpp +++ b/src/ui/cache/svg_preview_cache.cpp @@ -15,10 +15,6 @@ * */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include <gtk/gtk.h> #include <2geom/transforms.h> diff --git a/src/ui/dialog-events.cpp b/src/ui/dialog-events.cpp index cc9c8f0bd..99e58a7c6 100644 --- a/src/ui/dialog-events.cpp +++ b/src/ui/dialog-events.cpp @@ -11,10 +11,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm/entry.h> #include <gtkmm/window.h> #include "macros.h" diff --git a/src/ui/dialog/aboutbox.cpp b/src/ui/dialog/aboutbox.cpp index 6cee2e10e..fd78540d5 100644 --- a/src/ui/dialog/aboutbox.cpp +++ b/src/ui/dialog/aboutbox.cpp @@ -17,10 +17,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "aboutbox.h" #include <fstream> diff --git a/src/ui/dialog/align-and-distribute.cpp b/src/ui/dialog/align-and-distribute.cpp index 5bf437ca1..a11584584 100644 --- a/src/ui/dialog/align-and-distribute.cpp +++ b/src/ui/dialog/align-and-distribute.cpp @@ -16,11 +16,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <glibmm/i18n.h> #include <2geom/transforms.h> diff --git a/src/ui/dialog/clonetiler.cpp b/src/ui/dialog/clonetiler.cpp index 3cec38022..3b1d8af0b 100644 --- a/src/ui/dialog/clonetiler.cpp +++ b/src/ui/dialog/clonetiler.cpp @@ -14,10 +14,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "clonetiler.h" #include <glibmm/i18n.h> diff --git a/src/ui/dialog/color-item.cpp b/src/ui/dialog/color-item.cpp index 6569bc992..5875a7720 100644 --- a/src/ui/dialog/color-item.cpp +++ b/src/ui/dialog/color-item.cpp @@ -11,10 +11,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <cerrno> #include <gtkmm/label.h> diff --git a/src/ui/dialog/debug.cpp b/src/ui/dialog/debug.cpp index 36f4607fb..c449816e7 100644 --- a/src/ui/dialog/debug.cpp +++ b/src/ui/dialog/debug.cpp @@ -9,9 +9,6 @@ * Copyright (C) 2004 The Inkscape Organization * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include <gtkmm/box.h> #include <gtkmm/dialog.h> diff --git a/src/ui/dialog/dialog-manager.cpp b/src/ui/dialog/dialog-manager.cpp index 5a10cf890..28e45d50a 100644 --- a/src/ui/dialog/dialog-manager.cpp +++ b/src/ui/dialog/dialog-manager.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "ui/dialog/dialog-manager.h" #include "ui/dialog/prototype.h" diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp index a5037bbbf..49268dcb8 100644 --- a/src/ui/dialog/dialog.cpp +++ b/src/ui/dialog/dialog.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "dialog-manager.h" #include <gtkmm/dialog.h> diff --git a/src/ui/dialog/dock-behavior.cpp b/src/ui/dialog/dock-behavior.cpp index 1f679d5d2..5b3d2854c 100644 --- a/src/ui/dialog/dock-behavior.cpp +++ b/src/ui/dialog/dock-behavior.cpp @@ -10,11 +10,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "dock-behavior.h" #include "inkscape.h" #include "desktop.h" diff --git a/src/ui/dialog/document-metadata.cpp b/src/ui/dialog/document-metadata.cpp index 21ffef04a..6eeafbc39 100644 --- a/src/ui/dialog/document-metadata.cpp +++ b/src/ui/dialog/document-metadata.cpp @@ -14,10 +14,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "document-metadata.h" #include "desktop.h" #include "rdf.h" diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 342fdbfa6..6a1797310 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -19,7 +19,7 @@ */ #ifdef HAVE_CONFIG_H -# include <config.h> +# include "config.h" // only include where actually required! #endif #include "style.h" diff --git a/src/ui/dialog/document-properties.h b/src/ui/dialog/document-properties.h index 3607af441..8c96d7517 100644 --- a/src/ui/dialog/document-properties.h +++ b/src/ui/dialog/document-properties.h @@ -14,6 +14,10 @@ #ifndef INKSCAPE_UI_DIALOG_DOCUMENT_PREFERENCES_H #define INKSCAPE_UI_DIALOG_DOCUMENT_PREFERENCES_H +#ifdef HAVE_CONFIG_H +# include "config.h" // only include where actually required! +#endif + #include <cstddef> #include <sigc++/sigc++.h> #include <gtkmm/comboboxtext.h> diff --git a/src/ui/dialog/export.cpp b/src/ui/dialog/export.cpp index e153ed8f0..3176323ba 100644 --- a/src/ui/dialog/export.cpp +++ b/src/ui/dialog/export.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - // This has to be included prior to anything that includes setjmp.h, it croaks otherwise #include <png.h> diff --git a/src/ui/dialog/extension-editor.cpp b/src/ui/dialog/extension-editor.cpp index 5e1a0cda5..33ca5f5d9 100644 --- a/src/ui/dialog/extension-editor.cpp +++ b/src/ui/dialog/extension-editor.cpp @@ -11,10 +11,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "extension-editor.h" #include <glibmm/i18n.h> diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index e7b7be9b9..3454f99ea 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -17,10 +17,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <iostream> #include "filedialogimpl-gtkmm.h" diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp index 8f4ff0feb..4cccffccb 100644 --- a/src/ui/dialog/filedialogimpl-win32.cpp +++ b/src/ui/dialog/filedialogimpl-win32.cpp @@ -13,9 +13,6 @@ */ #ifdef _WIN32 -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif #include "filedialogimpl-win32.h" //General includes #include <cairomm/win32_surface.h> diff --git a/src/ui/dialog/filter-editor.cpp b/src/ui/dialog/filter-editor.cpp index de1d8f6ae..533402cd7 100644 --- a/src/ui/dialog/filter-editor.cpp +++ b/src/ui/dialog/filter-editor.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <string> #include <gtkmm.h> diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index 28325ab9e..c239711ab 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -15,10 +15,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <gtkmm/imagemenuitem.h> #include <gdkmm/display.h> diff --git a/src/ui/dialog/find.cpp b/src/ui/dialog/find.cpp index f8de11f42..9620382ea 100644 --- a/src/ui/dialog/find.cpp +++ b/src/ui/dialog/find.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "find.h" #include <gtkmm/entry.h> diff --git a/src/ui/dialog/floating-behavior.cpp b/src/ui/dialog/floating-behavior.cpp index 1581a5020..27e5f70d2 100644 --- a/src/ui/dialog/floating-behavior.cpp +++ b/src/ui/dialog/floating-behavior.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <gtkmm/dialog.h> #include <glibmm/main.h> diff --git a/src/ui/dialog/font-substitution.cpp b/src/ui/dialog/font-substitution.cpp index df7a3349e..a75515227 100644 --- a/src/ui/dialog/font-substitution.cpp +++ b/src/ui/dialog/font-substitution.cpp @@ -6,10 +6,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <set> #include <glibmm/i18n.h> diff --git a/src/ui/dialog/guides.cpp b/src/ui/dialog/guides.cpp index dd926296d..ab7758b04 100644 --- a/src/ui/dialog/guides.cpp +++ b/src/ui/dialog/guides.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "guides.h" #include <glibmm/i18n.h> diff --git a/src/ui/dialog/icon-preview.cpp b/src/ui/dialog/icon-preview.cpp index e7f6e0040..5d4014cb7 100644 --- a/src/ui/dialog/icon-preview.cpp +++ b/src/ui/dialog/icon-preview.cpp @@ -13,9 +13,6 @@ * * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include <glibmm/i18n.h> #include <glibmm/timer.h> diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index b10948229..419567474 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -14,7 +14,7 @@ */ #ifdef HAVE_CONFIG_H -# include <config.h> +# include "config.h" // only include where actually required! #endif #include "inkscape-preferences.h" diff --git a/src/ui/dialog/knot-properties.cpp b/src/ui/dialog/knot-properties.cpp index c5cc903c6..4409b5186 100644 --- a/src/ui/dialog/knot-properties.cpp +++ b/src/ui/dialog/knot-properties.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include "ui/dialog/knot-properties.h" #include <boost/lexical_cast.hpp> diff --git a/src/ui/dialog/layers.cpp b/src/ui/dialog/layers.cpp index cb4dcb0bc..d9f495152 100644 --- a/src/ui/dialog/layers.cpp +++ b/src/ui/dialog/layers.cpp @@ -9,9 +9,6 @@ * * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include "layers.h" diff --git a/src/ui/dialog/livepatheffect-add.cpp b/src/ui/dialog/livepatheffect-add.cpp index ca14c0750..b64961d05 100644 --- a/src/ui/dialog/livepatheffect-add.cpp +++ b/src/ui/dialog/livepatheffect-add.cpp @@ -9,7 +9,7 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" +# include "config.h" // only include where actually required! #endif #include "livepatheffect-add.h" diff --git a/src/ui/dialog/livepatheffect-editor.cpp b/src/ui/dialog/livepatheffect-editor.cpp index ccd71a171..512831f00 100644 --- a/src/ui/dialog/livepatheffect-editor.cpp +++ b/src/ui/dialog/livepatheffect-editor.cpp @@ -12,10 +12,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "livepatheffect-editor.h" #include <gtkmm/expander.h> diff --git a/src/ui/dialog/lpe-fillet-chamfer-properties.cpp b/src/ui/dialog/lpe-fillet-chamfer-properties.cpp index 0d5f7332d..e992d86ce 100644 --- a/src/ui/dialog/lpe-fillet-chamfer-properties.cpp +++ b/src/ui/dialog/lpe-fillet-chamfer-properties.cpp @@ -4,10 +4,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <gtkmm.h> #include "lpe-fillet-chamfer-properties.h" #include <boost/lexical_cast.hpp> diff --git a/src/ui/dialog/lpe-powerstroke-properties.cpp b/src/ui/dialog/lpe-powerstroke-properties.cpp index 13a20b041..8cf0a04fc 100644 --- a/src/ui/dialog/lpe-powerstroke-properties.cpp +++ b/src/ui/dialog/lpe-powerstroke-properties.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "lpe-powerstroke-properties.h" #include <boost/lexical_cast.hpp> #include <glibmm/i18n.h> diff --git a/src/ui/dialog/memory.cpp b/src/ui/dialog/memory.cpp index c9a16225e..454034cc5 100644 --- a/src/ui/dialog/memory.cpp +++ b/src/ui/dialog/memory.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "ui/dialog/memory.h" #include <glibmm/i18n.h> #include <glibmm/main.h> diff --git a/src/ui/dialog/messages.cpp b/src/ui/dialog/messages.cpp index 887f77c07..5b0a11349 100644 --- a/src/ui/dialog/messages.cpp +++ b/src/ui/dialog/messages.cpp @@ -10,9 +10,6 @@ * * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include "messages.h" #include "verbs.h" diff --git a/src/ui/dialog/new-from-template.cpp b/src/ui/dialog/new-from-template.cpp index f5fb62864..7f30560d5 100644 --- a/src/ui/dialog/new-from-template.cpp +++ b/src/ui/dialog/new-from-template.cpp @@ -8,10 +8,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#if HAVE_CONFIG_H -#include "config.h" -#endif - #include "new-from-template.h" #include "file.h" diff --git a/src/ui/dialog/objects.cpp b/src/ui/dialog/objects.cpp index 2991e1cda..e95dfc05b 100644 --- a/src/ui/dialog/objects.cpp +++ b/src/ui/dialog/objects.cpp @@ -11,9 +11,6 @@ * * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include "objects.h" diff --git a/src/ui/dialog/ocaldialogs.cpp b/src/ui/dialog/ocaldialogs.cpp index 42daddff2..c21a8d93f 100644 --- a/src/ui/dialog/ocaldialogs.cpp +++ b/src/ui/dialog/ocaldialogs.cpp @@ -12,10 +12,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "ocaldialogs.h" #include "filedialogimpl-gtkmm.h" diff --git a/src/ui/dialog/pixelartdialog.cpp b/src/ui/dialog/pixelartdialog.cpp index 2c1201db4..9901be38c 100644 --- a/src/ui/dialog/pixelartdialog.cpp +++ b/src/ui/dialog/pixelartdialog.cpp @@ -12,8 +12,9 @@ * * Released under GNU GPL, read the file 'COPYING' for more information */ + #ifdef HAVE_CONFIG_H -# include <config.h> +# include "config.h" // only include where actually required! #endif #ifdef GLIBMM_DISABLE_DEPRECATED diff --git a/src/ui/dialog/print.cpp b/src/ui/dialog/print.cpp index cb22e254c..02c2e0e09 100644 --- a/src/ui/dialog/print.cpp +++ b/src/ui/dialog/print.cpp @@ -12,10 +12,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <cmath> #include <gtkmm.h> diff --git a/src/ui/dialog/save-template-dialog.cpp b/src/ui/dialog/save-template-dialog.cpp index 5b7540039..1be831ef8 100644 --- a/src/ui/dialog/save-template-dialog.cpp +++ b/src/ui/dialog/save-template-dialog.cpp @@ -1,7 +1,3 @@ -#if HAVE_CONFIG_H -#include "config.h" -#endif - #include "save-template-dialog.h" #include "file.h" diff --git a/src/ui/dialog/spellcheck.cpp b/src/ui/dialog/spellcheck.cpp index 267b52423..653c1d9b0 100644 --- a/src/ui/dialog/spellcheck.cpp +++ b/src/ui/dialog/spellcheck.cpp @@ -12,6 +12,10 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ +#ifdef HAVE_CONFIG_H +# include "config.h" // only include where actually required! +#endif + #include "spellcheck.h" #include "message-stack.h" @@ -43,11 +47,6 @@ #include <windows.h> #endif -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - - namespace Inkscape { namespace UI { namespace Dialog { diff --git a/src/ui/dialog/spellcheck.h b/src/ui/dialog/spellcheck.h index a65b25440..3fbb28afe 100644 --- a/src/ui/dialog/spellcheck.h +++ b/src/ui/dialog/spellcheck.h @@ -13,7 +13,7 @@ #define SEEN_SPELLCHECK_H #ifdef HAVE_CONFIG_H -# include <config.h> +# include "config.h" // only include where actually required! #endif #include <vector> diff --git a/src/ui/dialog/svg-fonts-dialog.cpp b/src/ui/dialog/svg-fonts-dialog.cpp index 599a1f287..753da4de0 100644 --- a/src/ui/dialog/svg-fonts-dialog.cpp +++ b/src/ui/dialog/svg-fonts-dialog.cpp @@ -11,10 +11,6 @@ * Released under GNU GPLv2 (or later). Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <message-stack.h> #include <sstream> diff --git a/src/ui/dialog/symbols.cpp b/src/ui/dialog/symbols.cpp index c6e5cb98e..0b70ee4bb 100644 --- a/src/ui/dialog/symbols.cpp +++ b/src/ui/dialog/symbols.cpp @@ -9,7 +9,7 @@ */ #ifdef HAVE_CONFIG_H -# include "config.h" +# include "config.h" // only include where actually required! #endif #include <iostream> diff --git a/src/ui/dialog/tags.cpp b/src/ui/dialog/tags.cpp index bbba6a202..3306ba432 100644 --- a/src/ui/dialog/tags.cpp +++ b/src/ui/dialog/tags.cpp @@ -9,10 +9,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "tags.h" #include <gtkmm/icontheme.h> #include <gtkmm/imagemenuitem.h> diff --git a/src/ui/dialog/text-edit.cpp b/src/ui/dialog/text-edit.cpp index 16a79acdb..775d9a88e 100644 --- a/src/ui/dialog/text-edit.cpp +++ b/src/ui/dialog/text-edit.cpp @@ -17,7 +17,7 @@ */ #ifdef HAVE_CONFIG_H -# include "config.h" +# include "config.h" // only include where actually required! #endif #include "text-edit.h" diff --git a/src/ui/dialog/tracedialog.cpp b/src/ui/dialog/tracedialog.cpp index 72dfe60ec..3d3a49daf 100644 --- a/src/ui/dialog/tracedialog.cpp +++ b/src/ui/dialog/tracedialog.cpp @@ -11,9 +11,6 @@ * * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif #include "tracedialog.h" #include <gtkmm/notebook.h> diff --git a/src/ui/dialog/transformation.cpp b/src/ui/dialog/transformation.cpp index ae664ef7f..a239fc72c 100644 --- a/src/ui/dialog/transformation.cpp +++ b/src/ui/dialog/transformation.cpp @@ -11,10 +11,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <gtkmm/dialog.h> #include <2geom/transforms.h> diff --git a/src/ui/dialog/undo-history.cpp b/src/ui/dialog/undo-history.cpp index c480624fd..012adb5d3 100644 --- a/src/ui/dialog/undo-history.cpp +++ b/src/ui/dialog/undo-history.cpp @@ -11,10 +11,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "undo-history.h" #include "document-undo.h" diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp index 1c42b1d99..41f5f29a0 100644 --- a/src/ui/interface.cpp +++ b/src/ui/interface.cpp @@ -19,10 +19,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm/icontheme.h> #include <gtkmm/radiomenuitem.h> #include <gtkmm/separatormenuitem.h> diff --git a/src/ui/monitor.cpp b/src/ui/monitor.cpp index b78681070..af14d797d 100644 --- a/src/ui/monitor.cpp +++ b/src/ui/monitor.cpp @@ -23,10 +23,6 @@ * along with Inkscape. If not, see <http://www.gnu.org/licenses/>. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include <gdkmm/rectangle.h> #include <gdkmm/window.h> diff --git a/src/ui/selected-color.cpp b/src/ui/selected-color.cpp index f7ba74a5a..bdcfd9837 100644 --- a/src/ui/selected-color.cpp +++ b/src/ui/selected-color.cpp @@ -10,9 +10,6 @@ * Copyright (C) 2014 Authors * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif #include <glibmm/ustring.h> #include <cmath> diff --git a/src/ui/shape-editor-knotholders.cpp b/src/ui/shape-editor-knotholders.cpp index abcab90f2..64e7d6812 100644 --- a/src/ui/shape-editor-knotholders.cpp +++ b/src/ui/shape-editor-knotholders.cpp @@ -11,10 +11,6 @@ * Licensed under GNU GPL */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include "preferences.h" diff --git a/src/ui/shape-editor.cpp b/src/ui/shape-editor.cpp index 1c61a2dea..8323e2990 100644 --- a/src/ui/shape-editor.cpp +++ b/src/ui/shape-editor.cpp @@ -7,10 +7,6 @@ * */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <cstring> #include <glibmm/i18n.h> diff --git a/src/ui/toolbar/arc-toolbar.cpp b/src/ui/toolbar/arc-toolbar.cpp index b8650e2b8..8d1548919 100644 --- a/src/ui/toolbar/arc-toolbar.cpp +++ b/src/ui/toolbar/arc-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "arc-toolbar.h" #include <glibmm/i18n.h> diff --git a/src/ui/toolbar/box3d-toolbar.cpp b/src/ui/toolbar/box3d-toolbar.cpp index 7e7c8df10..32a5f2462 100644 --- a/src/ui/toolbar/box3d-toolbar.cpp +++ b/src/ui/toolbar/box3d-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtk/gtk.h> #include <glibmm/i18n.h> diff --git a/src/ui/toolbar/calligraphy-toolbar.cpp b/src/ui/toolbar/calligraphy-toolbar.cpp index 7f4d9648a..b34329437 100644 --- a/src/ui/toolbar/calligraphy-toolbar.cpp +++ b/src/ui/toolbar/calligraphy-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "ui/dialog/calligraphic-profile-rename.h" #include <glibmm/i18n.h> #include "calligraphy-toolbar.h" diff --git a/src/ui/toolbar/connector-toolbar.cpp b/src/ui/toolbar/connector-toolbar.cpp index 42bf965b7..3f8db155e 100644 --- a/src/ui/toolbar/connector-toolbar.cpp +++ b/src/ui/toolbar/connector-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include "connector-toolbar.h" diff --git a/src/ui/toolbar/dropper-toolbar.cpp b/src/ui/toolbar/dropper-toolbar.cpp index c66c5ead0..4e6aa2322 100644 --- a/src/ui/toolbar/dropper-toolbar.cpp +++ b/src/ui/toolbar/dropper-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include "dropper-toolbar.h" diff --git a/src/ui/toolbar/eraser-toolbar.cpp b/src/ui/toolbar/eraser-toolbar.cpp index ec028a2c8..e41817e63 100644 --- a/src/ui/toolbar/eraser-toolbar.cpp +++ b/src/ui/toolbar/eraser-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include "eraser-toolbar.h" diff --git a/src/ui/toolbar/gradient-toolbar.cpp b/src/ui/toolbar/gradient-toolbar.cpp index b6677e221..ff9790046 100644 --- a/src/ui/toolbar/gradient-toolbar.cpp +++ b/src/ui/toolbar/gradient-toolbar.cpp @@ -12,10 +12,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> diff --git a/src/ui/toolbar/lpe-toolbar.cpp b/src/ui/toolbar/lpe-toolbar.cpp index b42c1ae0c..e0a15eda8 100644 --- a/src/ui/toolbar/lpe-toolbar.cpp +++ b/src/ui/toolbar/lpe-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "live_effects/lpe-line_segment.h" #include "lpe-toolbar.h" diff --git a/src/ui/toolbar/measure-toolbar.cpp b/src/ui/toolbar/measure-toolbar.cpp index 07eefa330..67c523692 100644 --- a/src/ui/toolbar/measure-toolbar.cpp +++ b/src/ui/toolbar/measure-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include "measure-toolbar.h" diff --git a/src/ui/toolbar/mesh-toolbar.cpp b/src/ui/toolbar/mesh-toolbar.cpp index 80f817ae3..4b1593650 100644 --- a/src/ui/toolbar/mesh-toolbar.cpp +++ b/src/ui/toolbar/mesh-toolbar.cpp @@ -14,10 +14,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include <gtkmm.h> diff --git a/src/ui/toolbar/node-toolbar.cpp b/src/ui/toolbar/node-toolbar.cpp index 2cb9fb364..1e8fcaba0 100644 --- a/src/ui/toolbar/node-toolbar.cpp +++ b/src/ui/toolbar/node-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> diff --git a/src/ui/toolbar/paintbucket-toolbar.cpp b/src/ui/toolbar/paintbucket-toolbar.cpp index c46a007b6..3b0a6b3f4 100644 --- a/src/ui/toolbar/paintbucket-toolbar.cpp +++ b/src/ui/toolbar/paintbucket-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include "paintbucket-toolbar.h" diff --git a/src/ui/toolbar/pencil-toolbar.cpp b/src/ui/toolbar/pencil-toolbar.cpp index cf4ba5a5d..00be88490 100644 --- a/src/ui/toolbar/pencil-toolbar.cpp +++ b/src/ui/toolbar/pencil-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm.h> #include <glibmm/i18n.h> diff --git a/src/ui/toolbar/rect-toolbar.cpp b/src/ui/toolbar/rect-toolbar.cpp index f52e4dfa1..092cc1222 100644 --- a/src/ui/toolbar/rect-toolbar.cpp +++ b/src/ui/toolbar/rect-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtk/gtk.h> #include <glibmm/i18n.h> diff --git a/src/ui/toolbar/select-toolbar.cpp b/src/ui/toolbar/select-toolbar.cpp index fcb76a185..6eac48e21 100644 --- a/src/ui/toolbar/select-toolbar.cpp +++ b/src/ui/toolbar/select-toolbar.cpp @@ -12,10 +12,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include <2geom/rect.h> diff --git a/src/ui/toolbar/spiral-toolbar.cpp b/src/ui/toolbar/spiral-toolbar.cpp index b551ea379..c64e83488 100644 --- a/src/ui/toolbar/spiral-toolbar.cpp +++ b/src/ui/toolbar/spiral-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtk/gtk.h> #include <glibmm/i18n.h> diff --git a/src/ui/toolbar/spray-toolbar.cpp b/src/ui/toolbar/spray-toolbar.cpp index 894a69a69..c5f7feae0 100644 --- a/src/ui/toolbar/spray-toolbar.cpp +++ b/src/ui/toolbar/spray-toolbar.cpp @@ -25,10 +25,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm.h> #include "spray-toolbar.h" diff --git a/src/ui/toolbar/star-toolbar.cpp b/src/ui/toolbar/star-toolbar.cpp index 6cd225c78..66acbf03c 100644 --- a/src/ui/toolbar/star-toolbar.cpp +++ b/src/ui/toolbar/star-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include "star-toolbar.h" diff --git a/src/ui/toolbar/text-toolbar.cpp b/src/ui/toolbar/text-toolbar.cpp index a521c165d..01e259795 100644 --- a/src/ui/toolbar/text-toolbar.cpp +++ b/src/ui/toolbar/text-toolbar.cpp @@ -26,10 +26,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include "text-toolbar.h" diff --git a/src/ui/toolbar/tweak-toolbar.cpp b/src/ui/toolbar/tweak-toolbar.cpp index be6dda4e5..525df419f 100644 --- a/src/ui/toolbar/tweak-toolbar.cpp +++ b/src/ui/toolbar/tweak-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include <glibmm/i18n.h> #include "tweak-toolbar.h" diff --git a/src/ui/toolbar/zoom-toolbar.cpp b/src/ui/toolbar/zoom-toolbar.cpp index ec28dda89..aeb16374a 100644 --- a/src/ui/toolbar/zoom-toolbar.cpp +++ b/src/ui/toolbar/zoom-toolbar.cpp @@ -24,10 +24,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include "zoom-toolbar.h" #include "desktop.h" diff --git a/src/ui/tools/arc-tool.cpp b/src/ui/tools/arc-tool.cpp index dc3f0db0f..cc4b55999 100644 --- a/src/ui/tools/arc-tool.cpp +++ b/src/ui/tools/arc-tool.cpp @@ -15,10 +15,6 @@ * * Released under GNU GPL, read the file 'COPYING' for more information */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif #include <glibmm/i18n.h> #include <gdk/gdkkeysyms.h> diff --git a/src/ui/tools/dropper-tool.cpp b/src/ui/tools/dropper-tool.cpp index c0be19479..0b5de4f46 100644 --- a/src/ui/tools/dropper-tool.cpp +++ b/src/ui/tools/dropper-tool.cpp @@ -11,10 +11,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include <gdk/gdk.h> #include <gdk/gdkkeysyms.h> diff --git a/src/ui/tools/flood-tool.cpp b/src/ui/tools/flood-tool.cpp index de57d4500..43f2d6745 100644 --- a/src/ui/tools/flood-tool.cpp +++ b/src/ui/tools/flood-tool.cpp @@ -17,10 +17,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "flood-tool.h" #include <cmath> diff --git a/src/ui/tools/freehand-base.cpp b/src/ui/tools/freehand-base.cpp index 6c8a3f2c3..08c637d2e 100644 --- a/src/ui/tools/freehand-base.cpp +++ b/src/ui/tools/freehand-base.cpp @@ -16,10 +16,6 @@ #define DRAW_VERBOSE -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "desktop-style.h" #include "macros.h" #include "message-stack.h" diff --git a/src/ui/tools/gradient-tool.cpp b/src/ui/tools/gradient-tool.cpp index c00d0324e..3016d30b5 100644 --- a/src/ui/tools/gradient-tool.cpp +++ b/src/ui/tools/gradient-tool.cpp @@ -12,10 +12,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include <gdk/gdkkeysyms.h> diff --git a/src/ui/tools/lpe-tool.cpp b/src/ui/tools/lpe-tool.cpp index dae62d4f9..a61e6dfaa 100644 --- a/src/ui/tools/lpe-tool.cpp +++ b/src/ui/tools/lpe-tool.cpp @@ -14,10 +14,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include <gtk/gtk.h> diff --git a/src/ui/tools/measure-tool.cpp b/src/ui/tools/measure-tool.cpp index a7f8d2af2..f11fcac71 100644 --- a/src/ui/tools/measure-tool.cpp +++ b/src/ui/tools/measure-tool.cpp @@ -10,9 +10,6 @@ * * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif #include <gtkmm.h> #include <glibmm/i18n.h> diff --git a/src/ui/tools/mesh-tool.cpp b/src/ui/tools/mesh-tool.cpp index 251de33b3..c78575972 100644 --- a/src/ui/tools/mesh-tool.cpp +++ b/src/ui/tools/mesh-tool.cpp @@ -14,10 +14,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - //#define DEBUG_MESH diff --git a/src/ui/tools/select-tool.cpp b/src/ui/tools/select-tool.cpp index 6e8d631df..291737778 100644 --- a/src/ui/tools/select-tool.cpp +++ b/src/ui/tools/select-tool.cpp @@ -15,7 +15,7 @@ */ #ifdef HAVE_CONFIG_H -#include <config.h> +# include "config.h" // only include where actually required! #endif #include <cstring> diff --git a/src/ui/tools/star-tool.cpp b/src/ui/tools/star-tool.cpp index aa8fe48cd..297708208 100644 --- a/src/ui/tools/star-tool.cpp +++ b/src/ui/tools/star-tool.cpp @@ -14,10 +14,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <cstring> #include <string> diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp index 8542b1b6f..d79d09692 100644 --- a/src/ui/tools/text-tool.cpp +++ b/src/ui/tools/text-tool.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gdk/gdkkeysyms.h> #include <gtkmm/clipboard.h> #include <glibmm/i18n.h> diff --git a/src/ui/tools/tool-base.cpp b/src/ui/tools/tool-base.cpp index 172668618..b0cfbcce9 100644 --- a/src/ui/tools/tool-base.cpp +++ b/src/ui/tools/tool-base.cpp @@ -14,10 +14,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gdk/gdkkeysyms.h> #include <gdkmm/display.h> #include <glibmm/i18n.h> diff --git a/src/ui/uxmanager.cpp b/src/ui/uxmanager.cpp index d7f7ba87b..5550e00c8 100644 --- a/src/ui/uxmanager.cpp +++ b/src/ui/uxmanager.cpp @@ -9,10 +9,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "widgets/desktop-widget.h" #include "uxmanager.h" diff --git a/src/ui/view/view.cpp b/src/ui/view/view.cpp index 21fe10f4a..a265ed918 100644 --- a/src/ui/view/view.cpp +++ b/src/ui/view/view.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include <2geom/point.h> #include "document.h" #include "view.h" diff --git a/src/ui/widget/button.cpp b/src/ui/widget/button.cpp index 6c2d419cf..2a491e17c 100644 --- a/src/ui/widget/button.cpp +++ b/src/ui/widget/button.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "button.h" namespace Inkscape { diff --git a/src/ui/widget/clipmaskicon.cpp b/src/ui/widget/clipmaskicon.cpp index 704b5c653..281e60886 100644 --- a/src/ui/widget/clipmaskicon.cpp +++ b/src/ui/widget/clipmaskicon.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "ui/widget/clipmaskicon.h" #include "helper/icon-loader.h" diff --git a/src/ui/widget/color-icc-selector.cpp b/src/ui/widget/color-icc-selector.cpp index bddbb60e8..877a6d011 100644 --- a/src/ui/widget/color-icc-selector.cpp +++ b/src/ui/widget/color-icc-selector.cpp @@ -1,5 +1,5 @@ #ifdef HAVE_CONFIG_H -#include "config.h" +# include "config.h" // only include where actually required! #endif #include <set> diff --git a/src/ui/widget/color-notebook.cpp b/src/ui/widget/color-notebook.cpp index 788ede294..6f5423de4 100644 --- a/src/ui/widget/color-notebook.cpp +++ b/src/ui/widget/color-notebook.cpp @@ -12,13 +12,13 @@ * This code is in public domain */ -#undef SPCS_PREVIEW -#define noDUMP_CHANGE_INFO - #ifdef HAVE_CONFIG_H -#include "config.h" +# include "config.h" // only include where actually required! #endif +#undef SPCS_PREVIEW +#define noDUMP_CHANGE_INFO + #include <glibmm/i18n.h> #include <gtkmm/label.h> #include <gtkmm/notebook.h> diff --git a/src/ui/widget/color-notebook.h b/src/ui/widget/color-notebook.h index c34c4faf3..e5ac78939 100644 --- a/src/ui/widget/color-notebook.h +++ b/src/ui/widget/color-notebook.h @@ -15,7 +15,7 @@ #define SEEN_SP_COLOR_NOTEBOOK_H #ifdef HAVE_CONFIG_H -#include <config.h> +# include "config.h" // only include where actually required! #endif #include <boost/ptr_container/ptr_vector.hpp> diff --git a/src/ui/widget/color-scales.cpp b/src/ui/widget/color-scales.cpp index 162634a42..f5334821a 100644 --- a/src/ui/widget/color-scales.cpp +++ b/src/ui/widget/color-scales.cpp @@ -2,10 +2,6 @@ * bulia byak <buliabyak@users.sf.net> */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm/adjustment.h> #include <glibmm/i18n.h> diff --git a/src/ui/widget/color-slider.cpp b/src/ui/widget/color-slider.cpp index 58a236e92..e3b06f09c 100644 --- a/src/ui/widget/color-slider.cpp +++ b/src/ui/widget/color-slider.cpp @@ -11,10 +11,6 @@ * This code is in public domain */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gdkmm/cursor.h> #include <gdkmm/general.h> #include <gtkmm/adjustment.h> diff --git a/src/ui/widget/color-wheel-selector.cpp b/src/ui/widget/color-wheel-selector.cpp index 8a74c8d7f..0e0d39ab3 100644 --- a/src/ui/widget/color-wheel-selector.cpp +++ b/src/ui/widget/color-wheel-selector.cpp @@ -1,7 +1,3 @@ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "color-wheel-selector.h" #include <glibmm/i18n.h> diff --git a/src/ui/widget/dock.cpp b/src/ui/widget/dock.cpp index 7e90017e8..1e5be3505 100644 --- a/src/ui/widget/dock.cpp +++ b/src/ui/widget/dock.cpp @@ -10,6 +10,10 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ +#ifdef HAVE_CONFIG_H +# include "config.h" // only include where actually required! +#endif + #include "dock.h" #include "inkscape.h" #include "preferences.h" diff --git a/src/ui/widget/entity-entry.cpp b/src/ui/widget/entity-entry.cpp index 48597842b..5bd0a7700 100644 --- a/src/ui/widget/entity-entry.cpp +++ b/src/ui/widget/entity-entry.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "entity-entry.h" #include <gtkmm/scrolledwindow.h> diff --git a/src/ui/widget/entry.cpp b/src/ui/widget/entry.cpp index b1dd9ae8e..9ee6c9a08 100644 --- a/src/ui/widget/entry.cpp +++ b/src/ui/widget/entry.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "entry.h" #include <gtkmm/entry.h> diff --git a/src/ui/widget/font-button.cpp b/src/ui/widget/font-button.cpp index 1137c2d95..b9adedb2c 100644 --- a/src/ui/widget/font-button.cpp +++ b/src/ui/widget/font-button.cpp @@ -3,10 +3,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "font-button.h" #include <glibmm/i18n.h> diff --git a/src/ui/widget/font-selector-toolbar.cpp b/src/ui/widget/font-selector-toolbar.cpp index 276b05cd8..0d057f2df 100644 --- a/src/ui/widget/font-selector-toolbar.cpp +++ b/src/ui/widget/font-selector-toolbar.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include <glibmm/regex.h> #include <gdkmm/display.h> diff --git a/src/ui/widget/font-selector.cpp b/src/ui/widget/font-selector.cpp index 132e9bfdf..3def3eb2b 100644 --- a/src/ui/widget/font-selector.cpp +++ b/src/ui/widget/font-selector.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include <glibmm/markup.h> diff --git a/src/ui/widget/font-variants.cpp b/src/ui/widget/font-variants.cpp index b9b83bc55..06729eb26 100644 --- a/src/ui/widget/font-variants.cpp +++ b/src/ui/widget/font-variants.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm.h> #include <glibmm/i18n.h> diff --git a/src/ui/widget/font-variations.cpp b/src/ui/widget/font-variations.cpp index 9a8317a79..3a2a7b137 100644 --- a/src/ui/widget/font-variations.cpp +++ b/src/ui/widget/font-variations.cpp @@ -8,10 +8,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <iostream> #include <iomanip> diff --git a/src/ui/widget/frame.cpp b/src/ui/widget/frame.cpp index 5371e56d2..231cc28ee 100644 --- a/src/ui/widget/frame.cpp +++ b/src/ui/widget/frame.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "frame.h" diff --git a/src/ui/widget/iconrenderer.cpp b/src/ui/widget/iconrenderer.cpp index 4db870454..f84b6ffd5 100644 --- a/src/ui/widget/iconrenderer.cpp +++ b/src/ui/widget/iconrenderer.cpp @@ -8,11 +8,6 @@ * Released under GNU GPLv2+, read the file 'COPYING' for more information */ - -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "ui/widget/iconrenderer.h" #include "helper/icon-loader.h" diff --git a/src/ui/widget/labelled.cpp b/src/ui/widget/labelled.cpp index 3480a2b6a..a38391590 100644 --- a/src/ui/widget/labelled.cpp +++ b/src/ui/widget/labelled.cpp @@ -8,10 +8,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "helper/icon-loader.h" #include "labelled.h" #include <gtkmm/image.h> diff --git a/src/ui/widget/layer-selector.cpp b/src/ui/widget/layer-selector.cpp index 4e8e9813b..2f8e1220a 100644 --- a/src/ui/widget/layer-selector.cpp +++ b/src/ui/widget/layer-selector.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <cstring> #include <string> diff --git a/src/ui/widget/layertypeicon.cpp b/src/ui/widget/layertypeicon.cpp index 356531620..9dac64c32 100644 --- a/src/ui/widget/layertypeicon.cpp +++ b/src/ui/widget/layertypeicon.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL, read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "ui/widget/layertypeicon.h" #include "helper/icon-loader.h" diff --git a/src/ui/widget/licensor.cpp b/src/ui/widget/licensor.cpp index a8325525b..63c95cc3a 100644 --- a/src/ui/widget/licensor.cpp +++ b/src/ui/widget/licensor.cpp @@ -12,10 +12,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "licensor.h" #include <gtkmm/entry.h> diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp index aede866b1..f1a253efc 100644 --- a/src/ui/widget/page-sizer.cpp +++ b/src/ui/widget/page-sizer.cpp @@ -17,10 +17,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "page-sizer.h" #include <glibmm/i18n.h> #include "verbs.h" diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp index 73897aeb5..255dc2206 100644 --- a/src/ui/widget/panel.cpp +++ b/src/ui/widget/panel.cpp @@ -11,10 +11,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm/dialog.h> // for Gtk::RESPONSE_* #include <glibmm/i18n.h> diff --git a/src/ui/widget/point.cpp b/src/ui/widget/point.cpp index 6b31b1856..3a12e87e4 100644 --- a/src/ui/widget/point.cpp +++ b/src/ui/widget/point.cpp @@ -11,11 +11,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - - #include "ui/widget/point.h" namespace Inkscape { diff --git a/src/ui/widget/preferences-widget.cpp b/src/ui/widget/preferences-widget.cpp index e55bbe2af..d712c17ae 100644 --- a/src/ui/widget/preferences-widget.cpp +++ b/src/ui/widget/preferences-widget.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <glibmm/i18n.h> #include <glibmm/convert.h> #include <glibmm/regex.h> diff --git a/src/ui/widget/random.cpp b/src/ui/widget/random.cpp index 3bda641d7..27c2f8f6f 100644 --- a/src/ui/widget/random.cpp +++ b/src/ui/widget/random.cpp @@ -9,11 +9,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - - #include "helper/icon-loader.h" #include "random.h" #include <glibmm/i18n.h> diff --git a/src/ui/widget/registered-widget.cpp b/src/ui/widget/registered-widget.cpp index b4c114cff..23376ae38 100644 --- a/src/ui/widget/registered-widget.cpp +++ b/src/ui/widget/registered-widget.cpp @@ -13,10 +13,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "registered-widget.h" #include <gtkmm/radiobutton.h> diff --git a/src/ui/widget/registry.cpp b/src/ui/widget/registry.cpp index 9972e1acd..b8260a694 100644 --- a/src/ui/widget/registry.cpp +++ b/src/ui/widget/registry.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "registry.h" namespace Inkscape { diff --git a/src/ui/widget/rendering-options.cpp b/src/ui/widget/rendering-options.cpp index 220731b7e..79c2573cb 100644 --- a/src/ui/widget/rendering-options.cpp +++ b/src/ui/widget/rendering-options.cpp @@ -8,10 +8,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm.h> #include "preferences.h" diff --git a/src/ui/widget/rotateable.cpp b/src/ui/widget/rotateable.cpp index 6c2056da1..207145411 100644 --- a/src/ui/widget/rotateable.cpp +++ b/src/ui/widget/rotateable.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include <gtkmm/box.h> #include <gtkmm/eventbox.h> #include <2geom/point.h> diff --git a/src/ui/widget/scalar-unit.cpp b/src/ui/widget/scalar-unit.cpp index fc8c92142..203f4e4a4 100644 --- a/src/ui/widget/scalar-unit.cpp +++ b/src/ui/widget/scalar-unit.cpp @@ -9,10 +9,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "scalar-unit.h" #include "spinbutton.h" diff --git a/src/ui/widget/scalar.cpp b/src/ui/widget/scalar.cpp index 441366341..3281d340c 100644 --- a/src/ui/widget/scalar.cpp +++ b/src/ui/widget/scalar.cpp @@ -10,10 +10,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "scalar.h" #include "spinbutton.h" #include <gtkmm/scale.h> diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index b3efe9c61..e4f5437f5 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -9,10 +9,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "selected-style.h" #include <gtkmm/separatormenuitem.h> diff --git a/src/ui/widget/spinbutton.cpp b/src/ui/widget/spinbutton.cpp index 777a6edf4..4271936a1 100644 --- a/src/ui/widget/spinbutton.cpp +++ b/src/ui/widget/spinbutton.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "spinbutton.h" #include "unit-menu.h" diff --git a/src/ui/widget/text.cpp b/src/ui/widget/text.cpp index 5b6b7468d..7b0df45ad 100644 --- a/src/ui/widget/text.cpp +++ b/src/ui/widget/text.cpp @@ -8,10 +8,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include "text.h" #include <gtkmm/entry.h> diff --git a/src/ui/widget/tolerance-slider.cpp b/src/ui/widget/tolerance-slider.cpp index 447efdfe0..002681204 100644 --- a/src/ui/widget/tolerance-slider.cpp +++ b/src/ui/widget/tolerance-slider.cpp @@ -8,10 +8,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information */ -#ifdef HAVE_CONFIG_H -#include <config.h> -#endif - #include "tolerance-slider.h" #include "registry.h" diff --git a/src/ui/widget/unit-menu.cpp b/src/ui/widget/unit-menu.cpp index fd10b567e..e6453a03b 100644 --- a/src/ui/widget/unit-menu.cpp +++ b/src/ui/widget/unit-menu.cpp @@ -7,10 +7,6 @@ * Released under GNU GPL. Read the file 'COPYING' for more information. */ -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif - #include <cmath> #include "unit-menu.h" |
