[glom] Remove some unnecessary includes.



commit 725616fd2a4c0b704a663d4d8bf2f3d16240149b
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 17 19:46:49 2016 +0100

    Remove some unnecessary includes.
    
    Found by Jetbrains Clion inspections.

 glom/appwindow.cc                                  |    2 --
 glom/base_db.cc                                    |    4 ----
 glom/base_db_table.cc                              |    4 ----
 glom/box_db_table.cc                               |    3 ---
 glom/import_csv/dialog_import_csv.cc               |    1 -
 glom/libglom/connectionpool.cc                     |    1 -
 glom/libglom/connectionpool_backends/mysql.cc      |    2 --
 .../connectionpool_backends/mysql_central.cc       |    1 -
 glom/libglom/connectionpool_backends/mysql_self.cc |    5 -----
 glom/libglom/connectionpool_backends/postgres.cc   |    1 -
 .../connectionpool_backends/postgres_central.cc    |    1 -
 glom/libglom/data_structure/choicevalue.cc         |    2 --
 glom/libglom/data_structure/fieldtypes.cc          |    1 -
 glom/libglom/data_structure/layout/formatting.cc   |    1 -
 glom/libglom/data_structure/layout/layoutgroup.cc  |    1 -
 .../data_structure/layout/layoutitem_image.cc      |    1 -
 glom/libglom/document/document.cc                  |    1 -
 glom/libglom/layout_utils.cc                       |   12 +-----------
 glom/libglom/python_embed/py_glom_related.cc       |    1 -
 glom/libglom/python_embed/py_glom_relatedrecord.cc |    4 ----
 glom/libglom/utils.cc                              |    7 -------
 glom/libglom/xml_utils.cc                          |    1 -
 glom/libglom/xsl_utils.cc                          |    4 ----
 glom/mode_data/box_data_details.cc                 |    1 -
 glom/mode_data/datawidget/cellrenderer_dblist.cc   |    1 -
 .../datawidget/combochoiceswithtreemodel.cc        |    1 -
 glom/mode_data/datawidget/dialog_choose_date.cc    |    1 -
 glom/mode_data/datawidget/label.cc                 |    1 -
 glom/mode_data/db_adddel/db_adddel_withbuttons.cc  |    1 -
 glom/mode_data/notebook_data.cc                    |    1 -
 glom/mode_design/dialog_fields.cc                  |    1 -
 glom/mode_design/dialog_relationships.cc           |    1 -
 glom/mode_design/fields/combo_fieldtype.cc         |    1 -
 glom/mode_design/layout/dialog_layout.cc           |    1 -
 .../layout/dialog_layout_calendar_related.cc       |    1 -
 glom/mode_design/layout/dialog_layout_export.cc    |    1 -
 .../layout/dialog_layout_list_related.cc           |    1 -
 .../layout_item_dialogs/dialog_field_layout.cc     |    1 -
 .../layout_item_dialogs/dialog_field_summary.cc    |    1 -
 .../layout_item_dialogs/dialog_imageobject.cc      |    2 --
 .../layout/layout_item_dialogs/dialog_line.cc      |    1 -
 .../layout_item_dialogs/dialog_textobject.cc       |    1 -
 .../mode_design/print_layouts/box_print_layouts.cc |    2 --
 .../print_layouts/dialog_text_formatting.cc        |    1 -
 .../print_layouts/print_layout_toolbar.cc          |    2 +-
 .../report_layout/dialog_layout_report.cc          |    1 -
 .../script_library/dialog_script_library.cc        |    1 -
 .../translation/dialog_change_language.cc          |    1 -
 .../translation/dialog_copy_translation.cc         |    1 -
 .../translation/dialog_identify_original.cc        |    1 -
 glom/print_layout/canvas_layout_item.cc            |    1 -
 glom/print_layout/canvas_print_layout.cc           |    1 -
 glom/python_embed/glom_python.cc                   |    3 ---
 glom/utility_widgets/adddel/adddel.cc              |    1 -
 glom/utility_widgets/canvas/canvas_group_grid.cc   |    1 -
 .../utility_widgets/canvas/canvas_group_movable.cc |    4 ----
 glom/utility_widgets/canvas/canvas_line_movable.cc |    2 --
 glom/utility_widgets/canvas/canvas_rect_movable.cc |    2 --
 .../utility_widgets/canvas/canvas_table_movable.cc |    1 -
 glom/utility_widgets/dialog_flowtable.cc           |    1 -
 glom/utility_widgets/imageglom.cc                  |    1 -
 glom/utility_widgets/notebook_noframe.cc           |    1 -
 glom/utility_widgets/notebookglom.cc               |    1 -
 glom/utility_widgets/notebooklabelglom.cc          |    2 --
 glom/utils_ui.cc                                   |   12 ------------
 65 files changed, 2 insertions(+), 123 deletions(-)
---
diff --git a/glom/appwindow.cc b/glom/appwindow.cc
index 2bd496b..38e17bb 100644
--- a/glom/appwindow.cc
+++ b/glom/appwindow.cc
@@ -47,8 +47,6 @@
 
 #include <gtkmm/main.h>
 
-#include <cstdio>
-#include <memory> //For std::shared_ptr<>
 #include <giomm/file.h>
 #include <glibmm/spawn.h>
 #include <glibmm/convert.h>
diff --git a/glom/base_db.cc b/glom/base_db.cc
index 10a4252..eee62a5 100644
--- a/glom/base_db.cc
+++ b/glom/base_db.cc
@@ -43,15 +43,11 @@
 #include <libglom/data_structure/layout/report_parts/layoutitem_summary.h>
 #include <libglom/data_structure/layout/report_parts/layoutitem_fieldsummary.h>
 #include <libglom/data_structure/layout/report_parts/layoutitem_verticalgroup.h>
-#include <libglom/data_structure/layout/report_parts/layoutitem_header.h>
-#include <libglom/data_structure/layout/report_parts/layoutitem_footer.h>
 #include <glom/python_embed/glom_python.h>
 #include <libglom/privs.h>
 #include <libglom/db_utils.h>
 #include <glibmm/i18n.h>
 
-#include <sstream> //For stringstream
-
 #include <libgda/libgda.h> // gda_g_type_from_string
 
 namespace Glom
diff --git a/glom/base_db_table.cc b/glom/base_db_table.cc
index 584cac8..0600de0 100644
--- a/glom/base_db_table.cc
+++ b/glom/base_db_table.cc
@@ -19,10 +19,6 @@
  */
 
 #include "base_db_table.h"
-#include <libglom/data_structure/glomconversions.h>
-#include <glom/appwindow.h>
-#include <glom/python_embed/glom_python.h>
-#include <sstream>
 
 namespace Glom
 {
diff --git a/glom/box_db_table.cc b/glom/box_db_table.cc
index 4378d35..ce7da3c 100644
--- a/glom/box_db_table.cc
+++ b/glom/box_db_table.cc
@@ -19,9 +19,6 @@
  */
 
 #include "box_db_table.h"
-#include <libglom/data_structure/glomconversions.h>
-#include <glom/python_embed/glom_python.h>
-#include <sstream>
 
 namespace Glom
 {
diff --git a/glom/import_csv/dialog_import_csv.cc b/glom/import_csv/dialog_import_csv.cc
index 9bc80ac..2e181fc 100644
--- a/glom/import_csv/dialog_import_csv.cc
+++ b/glom/import_csv/dialog_import_csv.cc
@@ -20,7 +20,6 @@
 
 #include "dialog_import_csv.h"
 #include <glom/import_csv/file_encodings.h>
-#include <libglom/libglom_config.h>
 #include <libglom/utils.h>
 #include <libglom/data_structure/glomconversions.h>
 #include <gtkmm/messagedialog.h>
diff --git a/glom/libglom/connectionpool.cc b/glom/libglom/connectionpool.cc
index be5d938..5ccc37e 100644
--- a/glom/libglom/connectionpool.cc
+++ b/glom/libglom/connectionpool.cc
@@ -45,7 +45,6 @@
 
 #include <glibmm/convert.h>
 #include <glibmm/miscutils.h>
-#include <glibmm/i18n.h>
 
 #include <iostream>
 
diff --git a/glom/libglom/connectionpool_backends/mysql.cc b/glom/libglom/connectionpool_backends/mysql.cc
index 275d64e..6164cce 100644
--- a/glom/libglom/connectionpool_backends/mysql.cc
+++ b/glom/libglom/connectionpool_backends/mysql.cc
@@ -19,7 +19,6 @@
  */
 
 #include "config.h" // For MYSQL_UTILS_PATH
-#include <libglom/libglom_config.h>
 
 #include <libglom/connectionpool_backends/mysql.h>
 #include <libglom/spawn_with_feedback.h>
@@ -32,7 +31,6 @@
 #include <glibmm/miscutils.h>
 #include <glibmm/shell.h>
 #include <glib/gstdio.h> /* For g_rename(). TODO: Wrap this in glibmm? */
-#include <glibmm/i18n.h>
 
 #include <iostream>
 
diff --git a/glom/libglom/connectionpool_backends/mysql_central.cc 
b/glom/libglom/connectionpool_backends/mysql_central.cc
index 47c5b6e..2535a29 100644
--- a/glom/libglom/connectionpool_backends/mysql_central.cc
+++ b/glom/libglom/connectionpool_backends/mysql_central.cc
@@ -21,7 +21,6 @@
 #include <libglom/libglom_config.h>
 
 #include <libglom/connectionpool_backends/mysql_central.h>
-#include <glibmm/i18n.h>
 
 // Uncomment to see debug messages
 //#define GLOM_CONNECTION_DEBUG
diff --git a/glom/libglom/connectionpool_backends/mysql_self.cc 
b/glom/libglom/connectionpool_backends/mysql_self.cc
index c1a840b..f3ddcb3 100644
--- a/glom/libglom/connectionpool_backends/mysql_self.cc
+++ b/glom/libglom/connectionpool_backends/mysql_self.cc
@@ -20,7 +20,6 @@
 
 #include <libglom/connectionpool_backends/mysql_self.h>
 #include <libglom/utils.h>
-#include <libglom/db_utils.h>
 #include <libglom/spawn_with_feedback.h>
 #include <giomm/file.h>
 #include <glib/gstdio.h> // For g_remove
@@ -33,8 +32,6 @@
 #include <glibmm/main.h>
 #include <glibmm/shell.h>
 #include <glibmm/i18n.h>
-
-#include <sstream> //For stringstream
 #include <iostream>
 
 #ifdef G_OS_WIN32
@@ -47,8 +44,6 @@
 # include <netinet/in.h> //For sockaddr_in
 #endif
 
-#include <signal.h> //To catch segfaults
-
 // Uncomment to see debug messages
 //#define GLOM_CONNECTION_DEBUG
 
diff --git a/glom/libglom/connectionpool_backends/postgres.cc 
b/glom/libglom/connectionpool_backends/postgres.cc
index ad458ea..cd31d46 100644
--- a/glom/libglom/connectionpool_backends/postgres.cc
+++ b/glom/libglom/connectionpool_backends/postgres.cc
@@ -32,7 +32,6 @@
 #include <glibmm/miscutils.h>
 #include <glibmm/shell.h>
 #include <glib/gstdio.h> /* For g_rename(). TODO: Wrap this in glibmm? */
-#include <glibmm/i18n.h>
 
 #include <iostream>
 
diff --git a/glom/libglom/connectionpool_backends/postgres_central.cc 
b/glom/libglom/connectionpool_backends/postgres_central.cc
index 89ec998..aff2671 100644
--- a/glom/libglom/connectionpool_backends/postgres_central.cc
+++ b/glom/libglom/connectionpool_backends/postgres_central.cc
@@ -21,7 +21,6 @@
 #include <libglom/libglom_config.h>
 
 #include <libglom/connectionpool_backends/postgres_central.h>
-#include <glibmm/i18n.h>
 
 // Uncomment to see debug messages
 //#define GLOM_CONNECTION_DEBUG
diff --git a/glom/libglom/data_structure/choicevalue.cc b/glom/libglom/data_structure/choicevalue.cc
index 443d8f5..5a87e56 100644
--- a/glom/libglom/data_structure/choicevalue.cc
+++ b/glom/libglom/data_structure/choicevalue.cc
@@ -20,8 +20,6 @@
 
 #include <libglom/data_structure/choicevalue.h>
 
-#include <iostream>
-
 namespace Glom
 {
 
diff --git a/glom/libglom/data_structure/fieldtypes.cc b/glom/libglom/data_structure/fieldtypes.cc
index d84aaeb..5b12e05 100644
--- a/glom/libglom/data_structure/fieldtypes.cc
+++ b/glom/libglom/data_structure/fieldtypes.cc
@@ -21,7 +21,6 @@
 #include <libglom/data_structure/fieldtypes.h>
 #include <iostream> //For debug output
 #include <libgda/gda-util.h> // For gda_g_type_to_string
-#include <libglom/connectionpool.h>
 #include <libglom/utils.h>
 
 namespace Glom
diff --git a/glom/libglom/data_structure/layout/formatting.cc 
b/glom/libglom/data_structure/layout/formatting.cc
index 697a8a1..9bc6115 100644
--- a/glom/libglom/data_structure/layout/formatting.cc
+++ b/glom/libglom/data_structure/layout/formatting.cc
@@ -21,7 +21,6 @@
 #include <libglom/data_structure/layout/formatting.h>
 #include <libglom/data_structure/glomconversions.h>
 #include <libglom/document/document.h>
-#include <glibmm/i18n.h>
 
 const guint MULTILINE_TEXT_DEFAULT_HEIGHT_LINES = 6;
 //const char* MULTILINE_TEXT_DEFAULT_WIDTH_EXAMPLE = "abcdefghijklmnopqrstuvwxyz"
diff --git a/glom/libglom/data_structure/layout/layoutgroup.cc 
b/glom/libglom/data_structure/layout/layoutgroup.cc
index 6c72a38..117e029 100644
--- a/glom/libglom/data_structure/layout/layoutgroup.cc
+++ b/glom/libglom/data_structure/layout/layoutgroup.cc
@@ -19,7 +19,6 @@
  */
 
 #include <libglom/data_structure/layout/layoutgroup.h>
-#include <libglom/data_structure/layout/layoutitem_portal.h>
 #include <libglom/algorithms_utils.h>
 #include <glibmm/i18n.h>
 #include <iostream> 
diff --git a/glom/libglom/data_structure/layout/layoutitem_image.cc 
b/glom/libglom/data_structure/layout/layoutitem_image.cc
index 54df0d4..d3965f0 100644
--- a/glom/libglom/data_structure/layout/layoutitem_image.cc
+++ b/glom/libglom/data_structure/layout/layoutitem_image.cc
@@ -21,7 +21,6 @@
 #include <libglom/data_structure/layout/layoutitem_image.h>
 #include <libglom/utils.h>
 #include <libglom/file_utils.h>
-#include <libglom/data_structure/glomconversions.h>
 #include <glibmm/i18n.h>
 
 namespace Glom
diff --git a/glom/libglom/document/document.cc b/glom/libglom/document/document.cc
index 219dbe0..dd8139c 100644
--- a/glom/libglom/document/document.cc
+++ b/glom/libglom/document/document.cc
@@ -36,7 +36,6 @@
 #include <libglom/data_structure/layout/layoutitem_calendarportal.h>
 #include <libglom/data_structure/layout/layoutitem_line.h>
 #include <libglom/standard_table_prefs_fields.h>
-#include <libglom/spawn_with_feedback.h>
 #include <libglom/translations_po.h>
 #include <giomm/file.h>
 #include <glibmm/miscutils.h>
diff --git a/glom/libglom/layout_utils.cc b/glom/libglom/layout_utils.cc
index 5933120..a941728 100644
--- a/glom/libglom/layout_utils.cc
+++ b/glom/libglom/layout_utils.cc
@@ -20,26 +20,16 @@
 
 #include <libglom/layout_utils.h>
 #include <libglom/db_utils.h>
-#include <libglom/layout_utils.h>
-#include <libglom/privs.h>
 #include <libglom/connectionpool.h>
-#include <libglom/data_structure/layout/report_parts/layoutitem_fieldsummary.h>
-#include <libglom/data_structure/glomconversions.h>
 #include <libglom/string_utils.h>
+#include "privs.h"
 
 #include <giomm/file.h>
 #include <giomm/resource.h>
 #include <glibmm/convert.h>
 #include <glibmm/fileutils.h>
 #include <glibmm/miscutils.h>
-#include <glibmm/i18n.h>
-
-
-#include <string.h> // for strchr
-#include <sstream> //For stringstream
-
 #include <iostream>
-#include "utils.h"
 
 
 namespace Glom
diff --git a/glom/libglom/python_embed/py_glom_related.cc b/glom/libglom/python_embed/py_glom_related.cc
index 236a9b6..830bb88 100644
--- a/glom/libglom/python_embed/py_glom_related.cc
+++ b/glom/libglom/python_embed/py_glom_related.cc
@@ -24,7 +24,6 @@
 
 #include <libglom/data_structure/field.h>
 #include <libglom/data_structure/glomconversions.h>
-#include <glibmm/ustring.h>
 
 
 namespace Glom
diff --git a/glom/libglom/python_embed/py_glom_relatedrecord.cc 
b/glom/libglom/python_embed/py_glom_relatedrecord.cc
index 4c4ba84..7538261 100644
--- a/glom/libglom/python_embed/py_glom_relatedrecord.cc
+++ b/glom/libglom/python_embed/py_glom_relatedrecord.cc
@@ -25,11 +25,7 @@
 #include <libglom/python_embed/pygdavalue_conversions.h> //For pygda_value_as_pyobject().
 #include <libglom/connectionpool.h>
 #include <libglom/data_structure/glomconversions.h>
-
 #include <libglom/data_structure/field.h>
-#include <glibmm/ustring.h>
-
-//#include "glom/appwindow.h"
 
 namespace Glom
 {
diff --git a/glom/libglom/utils.cc b/glom/libglom/utils.cc
index a177390..367ba0e 100644
--- a/glom/libglom/utils.cc
+++ b/glom/libglom/utils.cc
@@ -21,7 +21,6 @@
 #include <libglom/libglom_config.h>
 
 #include <libglom/utils.h>
-#include <libglom/db_utils.h>
 #include <libglom/privs.h>
 #include <libglom/connectionpool.h>
 #include <libglom/data_structure/glomconversions.h>
@@ -32,17 +31,11 @@
 #include <glibmm/convert.h>
 #include <glibmm/fileutils.h>
 #include <glibmm/miscutils.h>
-#include <glibmm/i18n.h>
-
-
-#include <string.h> // for strchr
-#include <sstream> //For stringstream
 
 #include <iostream>
 #include <fstream>
 
 #include <locale>     // for locale, time_put
-#include <ctime>     // for struct tm
 #include <iostream>   // for cout, endl
 #include <iomanip>
 
diff --git a/glom/libglom/xml_utils.cc b/glom/libglom/xml_utils.cc
index ff04619..d943902 100644
--- a/glom/libglom/xml_utils.cc
+++ b/glom/libglom/xml_utils.cc
@@ -21,7 +21,6 @@
 #include <libglom/xml_utils.h>
 #include <libglom/utils.h>
 #include <libglom/string_utils.h>
-#include <limits> // for numeric_limits
 
 static const char GLOM_ATTRIBUTE_IMAGE_DATA_FORMAT[] = "format";
 static const char GLOM_ATTRIBUTE_IMAGE_DATA_FORMAT_BASE64[] = "base64"; //No attribute here means the old 
GDA format.
diff --git a/glom/libglom/xsl_utils.cc b/glom/libglom/xsl_utils.cc
index e419a35..7b6037d 100644
--- a/glom/libglom/xsl_utils.cc
+++ b/glom/libglom/xsl_utils.cc
@@ -30,15 +30,11 @@
 //#include <libexslt/exslt.h> //For exsltRegisterAll().
 #include <giomm/file.h>
 #include <glibmm/miscutils.h>
-#include <glibmm/i18n.h>
-
-#include <sstream> //For stringstream
 
 #include <iostream>
 #include <fstream>
 
 #include <locale>     // for locale, time_put
-#include <ctime>     // for struct tm
 #include <iostream>   // for cout, endl
 #include <iomanip>
 
diff --git a/glom/mode_data/box_data_details.cc b/glom/mode_data/box_data_details.cc
index 335b651..05dda07 100644
--- a/glom/mode_data/box_data_details.cc
+++ b/glom/mode_data/box_data_details.cc
@@ -37,7 +37,6 @@
 #include <glom/print_layout/print_layout_utils.h>
 #include <glom/appwindow.h>
 #include <gtkmm/viewport.h>
-#include <sstream> //For stringstream
 #include <glibmm/i18n.h>
 
 namespace Glom
diff --git a/glom/mode_data/datawidget/cellrenderer_dblist.cc 
b/glom/mode_data/datawidget/cellrenderer_dblist.cc
index 10107e6..1b6e66b 100644
--- a/glom/mode_data/datawidget/cellrenderer_dblist.cc
+++ b/glom/mode_data/datawidget/cellrenderer_dblist.cc
@@ -21,7 +21,6 @@
 #include "cellrenderer_dblist.h"
 #include <glom/mode_data/datawidget/cellcreation.h>
 #include <glom/mode_data/datawidget/treemodel_db_withextratext.h>
-#include <gtkmm/cellrenderertext.h>
 #include <libglom/data_structure/glomconversions.h>
 #include <iostream>
 
diff --git a/glom/mode_data/datawidget/combochoiceswithtreemodel.cc 
b/glom/mode_data/datawidget/combochoiceswithtreemodel.cc
index 05ae670..481438e 100644
--- a/glom/mode_data/datawidget/combochoiceswithtreemodel.cc
+++ b/glom/mode_data/datawidget/combochoiceswithtreemodel.cc
@@ -32,7 +32,6 @@
 //#include <sstream> //For stringstream
 
 #include <locale>     // for locale, time_put
-#include <ctime>     // for struct tm
 #include <iostream>   // for cout, endl
 
 namespace Glom
diff --git a/glom/mode_data/datawidget/dialog_choose_date.cc b/glom/mode_data/datawidget/dialog_choose_date.cc
index 8556e31..8c372b9 100644
--- a/glom/mode_data/datawidget/dialog_choose_date.cc
+++ b/glom/mode_data/datawidget/dialog_choose_date.cc
@@ -20,7 +20,6 @@
 
 #include "dialog_choose_date.h"
 //#include <libgnome/gnome-i18n.h>
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_data/datawidget/label.cc b/glom/mode_data/datawidget/label.cc
index 241a705..93b880a 100644
--- a/glom/mode_data/datawidget/label.cc
+++ b/glom/mode_data/datawidget/label.cc
@@ -21,7 +21,6 @@
 #include "label.h"
 #include <gtkmm/messagedialog.h>
 #include <glom/appwindow.h>
-#include <glibmm/i18n.h>
 #include <glom/mode_design/layout/layout_item_dialogs/dialog_textobject.h>
 #include <glom/glade_utils.h>
 #include <glom/mode_data/flowtablewithfields.h>
diff --git a/glom/mode_data/db_adddel/db_adddel_withbuttons.cc 
b/glom/mode_data/db_adddel/db_adddel_withbuttons.cc
index f3485cc..5ceb1f6 100644
--- a/glom/mode_data/db_adddel/db_adddel_withbuttons.cc
+++ b/glom/mode_data/db_adddel/db_adddel_withbuttons.cc
@@ -21,7 +21,6 @@
 #include "db_adddel_withbuttons.h"
 #include <glom/utils_ui.h>
 #include <libglom/utils.h>
-#include <gtkmm/buttonbox.h>
 #include <glibmm/i18n.h>
 
 namespace Glom
diff --git a/glom/mode_data/notebook_data.cc b/glom/mode_data/notebook_data.cc
index 600f39d..5bf0cce 100644
--- a/glom/mode_data/notebook_data.cc
+++ b/glom/mode_data/notebook_data.cc
@@ -21,7 +21,6 @@
 #include <glom/mode_data/notebook_data.h>
 #include <glom/signal_reemitter.h>
 #include <libglom/data_structure/glomconversions.h>
-#include <libglom/utils.h>
 #include <libglom/sql_utils.h>
 #include <glibmm/main.h>
 #include <glibmm/i18n.h>
diff --git a/glom/mode_design/dialog_fields.cc b/glom/mode_design/dialog_fields.cc
index ae10b1e..d97e851 100644
--- a/glom/mode_design/dialog_fields.cc
+++ b/glom/mode_design/dialog_fields.cc
@@ -21,7 +21,6 @@
 #include "dialog_fields.h"
 //#include <libgnome/gnome-i18n.h>
 #include <glom/utils_ui.h> //For bold_message()).
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/dialog_relationships.cc b/glom/mode_design/dialog_relationships.cc
index 50f781a..866ef85 100644
--- a/glom/mode_design/dialog_relationships.cc
+++ b/glom/mode_design/dialog_relationships.cc
@@ -21,7 +21,6 @@
 #include "dialog_relationships.h"
 //#include <libgnome/gnome-i18n.h>
 #include <glom/utils_ui.h> //For bold_message()).
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/fields/combo_fieldtype.cc b/glom/mode_design/fields/combo_fieldtype.cc
index ec8aa5c..7290479 100644
--- a/glom/mode_design/fields/combo_fieldtype.cc
+++ b/glom/mode_design/fields/combo_fieldtype.cc
@@ -21,7 +21,6 @@
 #include <gtkmm/liststore.h>
 #include "combo_fieldtype.h"
 #include "../../box_db_table.h"
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/layout/dialog_layout.cc b/glom/mode_design/layout/dialog_layout.cc
index 03affab..9e2ad93 100644
--- a/glom/mode_design/layout/dialog_layout.cc
+++ b/glom/mode_design/layout/dialog_layout.cc
@@ -20,7 +20,6 @@
 
 #include <glom/mode_design/layout/dialog_layout.h>
 //#include <libgnome/gnome-i18n.h>
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/layout/dialog_layout_calendar_related.cc 
b/glom/mode_design/layout/dialog_layout_calendar_related.cc
index b160046..a2e0575 100644
--- a/glom/mode_design/layout/dialog_layout_calendar_related.cc
+++ b/glom/mode_design/layout/dialog_layout_calendar_related.cc
@@ -20,7 +20,6 @@
 
 #include <glom/mode_design/layout/dialog_layout_calendar_related.h>
 #include <glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.h>
-#include <libglom/utils.h> //For bold_message()).
 
 //#include <libgnome/gnome-i18n.h>
 #include <gtkmm/togglebutton.h>
diff --git a/glom/mode_design/layout/dialog_layout_export.cc b/glom/mode_design/layout/dialog_layout_export.cc
index 14d2457..03f4aee 100644
--- a/glom/mode_design/layout/dialog_layout_export.cc
+++ b/glom/mode_design/layout/dialog_layout_export.cc
@@ -21,7 +21,6 @@
 #include <glom/mode_design/layout/dialog_layout_export.h>
 #include <glom/mode_design/layout/dialog_choose_field.h>
 #include <glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.h>
-#include <libglom/utils.h> //For bold_message()).
 
 //#include <libgnome/gnome-i18n.h>
 #include <glibmm/i18n.h>
diff --git a/glom/mode_design/layout/dialog_layout_list_related.cc 
b/glom/mode_design/layout/dialog_layout_list_related.cc
index b575ac9..5f88726 100644
--- a/glom/mode_design/layout/dialog_layout_list_related.cc
+++ b/glom/mode_design/layout/dialog_layout_list_related.cc
@@ -20,7 +20,6 @@
 
 #include <glom/mode_design/layout/dialog_layout_list_related.h>
 #include <glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.h>
-#include <libglom/utils.h> //For bold_message().
 #include <libglom/db_utils.h>
 #include <glom/utils_ui.h> //For show_ok_dialog().
 
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.cc 
b/glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.cc
index aa8f9b6..9abfaf6 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_field_layout.cc
@@ -21,7 +21,6 @@
 #include "dialog_field_layout.h"
 #include <glom/glade_utils.h>
 #include <glom/appwindow.h>
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_field_summary.cc 
b/glom/mode_design/layout/layout_item_dialogs/dialog_field_summary.cc
index 5d369d8..0f14c5d 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_field_summary.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_field_summary.cc
@@ -19,7 +19,6 @@
  */
 
 #include "dialog_field_summary.h"
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_imageobject.cc 
b/glom/mode_design/layout/layout_item_dialogs/dialog_imageobject.cc
index 91d9c6f..cd8fc3a 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_imageobject.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_imageobject.cc
@@ -20,8 +20,6 @@
 
 
 #include "dialog_imageobject.h"
-#include <glom/python_embed/glom_python.h>
-#include <libglom/data_structure/glomconversions.h>
 #include <glom/appwindow.h>
 
 //#include <libgnome/gnome-i18n.h>
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_line.cc 
b/glom/mode_design/layout/layout_item_dialogs/dialog_line.cc
index 7a2eaae..4392295 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_line.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_line.cc
@@ -20,7 +20,6 @@
 
 
 #include "dialog_line.h"
-#include <libglom/data_structure/glomconversions.h>
 #include <iostream>
 
 //#include <libgnome/gnome-i18n.h>
diff --git a/glom/mode_design/layout/layout_item_dialogs/dialog_textobject.cc 
b/glom/mode_design/layout/layout_item_dialogs/dialog_textobject.cc
index 834bb77..6cffb54 100644
--- a/glom/mode_design/layout/layout_item_dialogs/dialog_textobject.cc
+++ b/glom/mode_design/layout/layout_item_dialogs/dialog_textobject.cc
@@ -21,7 +21,6 @@
 
 #include "dialog_textobject.h"
 #include <glom/appwindow.h>
-#include <libglom/data_structure/glomconversions.h>
 
 //#include <libgnome/gnome-i18n.h>
 #include <glibmm/i18n.h>
diff --git a/glom/mode_design/print_layouts/box_print_layouts.cc 
b/glom/mode_design/print_layouts/box_print_layouts.cc
index 92b1814..42bbb98 100644
--- a/glom/mode_design/print_layouts/box_print_layouts.cc
+++ b/glom/mode_design/print_layouts/box_print_layouts.cc
@@ -20,8 +20,6 @@
 
 #include "box_print_layouts.h"
 #include <glom/appwindow.h>
-#include <gtkmm/alignment.h>
-#include <gtkmm/messagedialog.h>
 #include <libglom/algorithms_utils.h>
 #include <libglom/utils.h> //For bold_message()).
 #include <libglom/string_utils.h>
diff --git a/glom/mode_design/print_layouts/dialog_text_formatting.cc 
b/glom/mode_design/print_layouts/dialog_text_formatting.cc
index ac35df0..03eaba6 100644
--- a/glom/mode_design/print_layouts/dialog_text_formatting.cc
+++ b/glom/mode_design/print_layouts/dialog_text_formatting.cc
@@ -20,7 +20,6 @@
 
 #include "dialog_text_formatting.h"
 #include <glom/glade_utils.h>
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/print_layouts/print_layout_toolbar.cc 
b/glom/mode_design/print_layouts/print_layout_toolbar.cc
index d2f2fd9..7b7cdc3 100644
--- a/glom/mode_design/print_layouts/print_layout_toolbar.cc
+++ b/glom/mode_design/print_layouts/print_layout_toolbar.cc
@@ -20,7 +20,7 @@
 
 #include "print_layout_toolbar.h"
 #include <glibmm/i18n.h>
-#include <libglom/libglom_config.h>
+
 
 namespace Glom
 {
diff --git a/glom/mode_design/report_layout/dialog_layout_report.cc 
b/glom/mode_design/report_layout/dialog_layout_report.cc
index d2bfdde..6785eab 100644
--- a/glom/mode_design/report_layout/dialog_layout_report.cc
+++ b/glom/mode_design/report_layout/dialog_layout_report.cc
@@ -37,7 +37,6 @@
 //#include <libgnome/gnome-i18n.h>
 #include <libglom/utils.h> //For bold_message()).
 #include <glibmm/i18n.h>
-#include <sstream> //For stringstream
 
 namespace Glom
 {
diff --git a/glom/mode_design/script_library/dialog_script_library.cc 
b/glom/mode_design/script_library/dialog_script_library.cc
index c9d6588..5b681ad 100644
--- a/glom/mode_design/script_library/dialog_script_library.cc
+++ b/glom/mode_design/script_library/dialog_script_library.cc
@@ -21,7 +21,6 @@
 
 #include "dialog_script_library.h"
 #include <glom/python_embed/glom_python.h>
-#include <libglom/data_structure/glomconversions.h>
 #include <glom/glade_utils.h>
 #include <glom/utils_ui.h>
 #include <glom/mode_design/script_library/dialog_new_script.h>
diff --git a/glom/mode_design/translation/dialog_change_language.cc 
b/glom/mode_design/translation/dialog_change_language.cc
index 1afd90c..99e8dfd 100644
--- a/glom/mode_design/translation/dialog_change_language.cc
+++ b/glom/mode_design/translation/dialog_change_language.cc
@@ -20,7 +20,6 @@
 
 #include "dialog_change_language.h"
 #include <glom/appwindow.h>
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/translation/dialog_copy_translation.cc 
b/glom/mode_design/translation/dialog_copy_translation.cc
index 738f0b5..a39448e 100644
--- a/glom/mode_design/translation/dialog_copy_translation.cc
+++ b/glom/mode_design/translation/dialog_copy_translation.cc
@@ -20,7 +20,6 @@
 
 #include "dialog_copy_translation.h"
 #include <glom/appwindow.h>
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/mode_design/translation/dialog_identify_original.cc 
b/glom/mode_design/translation/dialog_identify_original.cc
index 3b23d40..682d4b4 100644
--- a/glom/mode_design/translation/dialog_identify_original.cc
+++ b/glom/mode_design/translation/dialog_identify_original.cc
@@ -21,7 +21,6 @@
 #include "dialog_identify_original.h"
 #include <glom/utils_ui.h> //For bold_message()).
 #include <glom/appwindow.h>
-#include <glibmm/i18n.h>
 
 #include <iostream>
 
diff --git a/glom/print_layout/canvas_layout_item.cc b/glom/print_layout/canvas_layout_item.cc
index 8ceedf2..3c6a57f 100644
--- a/glom/print_layout/canvas_layout_item.cc
+++ b/glom/print_layout/canvas_layout_item.cc
@@ -37,7 +37,6 @@
 #include <libglom/data_structure/glomconversions.h>
 #include <glibmm/i18n.h>
 #include <cmath>
-#include <algorithm> //For std::max().
 #include <iostream>
 
 namespace Glom
diff --git a/glom/print_layout/canvas_print_layout.cc b/glom/print_layout/canvas_print_layout.cc
index ef5bfb0..fc30542 100644
--- a/glom/print_layout/canvas_print_layout.cc
+++ b/glom/print_layout/canvas_print_layout.cc
@@ -38,7 +38,6 @@
 #include <libglom/utils.h>
 
 #include <glom/glade_utils.h>
-#include <gtkmm/builder.h>
 #include <giomm/menu.h>
 #include <glibmm/i18n.h>
 
diff --git a/glom/python_embed/glom_python.cc b/glom/python_embed/glom_python.cc
index 23ebd97..81c05d3 100644
--- a/glom/python_embed/glom_python.cc
+++ b/glom/python_embed/glom_python.cc
@@ -33,9 +33,6 @@
 #include <libglom/data_structure/glomconversions.h>
 #include <list>
 #include <glib.h> //For g_warning().
-#include <glibmm/i18n.h>
-
-#include <gtkmm/messagedialog.h>
 
 #include <iostream>
 
diff --git a/glom/utility_widgets/adddel/adddel.cc b/glom/utility_widgets/adddel/adddel.cc
index 6e1df60..eb792f4 100644
--- a/glom/utility_widgets/adddel/adddel.cc
+++ b/glom/utility_widgets/adddel/adddel.cc
@@ -21,7 +21,6 @@
 #include "config.h" // For GLOM_ENABLE_CLIENT_ONLY
 
 #include <glom/utility_widgets/adddel/adddel.h>
-#include <algorithm> //For std::find.
 #include <glibmm/i18n.h>
 #include <glom/utility_widgets/cellrendererlist.h>
 #include <glom/utility_widgets/adddel/treeviewcolumn_glom.h>
diff --git a/glom/utility_widgets/canvas/canvas_group_grid.cc 
b/glom/utility_widgets/canvas/canvas_group_grid.cc
index 932b410..f5830f5 100644
--- a/glom/utility_widgets/canvas/canvas_group_grid.cc
+++ b/glom/utility_widgets/canvas/canvas_group_grid.cc
@@ -21,7 +21,6 @@
 #include "canvas_group_grid.h"
 #include "canvas_line_movable.h"
 #include <goocanvasmm/canvas.h>
-#include <goocanvasgroup.h>
 #include <math.h>
 #include <iostream>
 
diff --git a/glom/utility_widgets/canvas/canvas_group_movable.cc 
b/glom/utility_widgets/canvas/canvas_group_movable.cc
index 42870d7..901e7ad 100644
--- a/glom/utility_widgets/canvas/canvas_group_movable.cc
+++ b/glom/utility_widgets/canvas/canvas_group_movable.cc
@@ -19,12 +19,8 @@
  */
 
 #include "canvas_group_movable.h"
-#include "canvas_rect_movable.h"
-#include "canvas_line_movable.h"
-#include "canvas_text_movable.h"
 #include "libglom/utils.h"
 #include <goocanvasmm/canvas.h>
-#include <gdkmm/cursor.h>
 #include <iostream>
 
 namespace Glom
diff --git a/glom/utility_widgets/canvas/canvas_line_movable.cc 
b/glom/utility_widgets/canvas/canvas_line_movable.cc
index 7a8aa8b..f88d2ae 100644
--- a/glom/utility_widgets/canvas/canvas_line_movable.cc
+++ b/glom/utility_widgets/canvas/canvas_line_movable.cc
@@ -20,8 +20,6 @@
 
 #include "canvas_line_movable.h"
 #include <goocanvasmm/canvas.h>
-#include <gdkmm/cursor.h>
-#include <iostream>
 
 namespace Glom
 {
diff --git a/glom/utility_widgets/canvas/canvas_rect_movable.cc 
b/glom/utility_widgets/canvas/canvas_rect_movable.cc
index c3b5891..8d3bb0e 100644
--- a/glom/utility_widgets/canvas/canvas_rect_movable.cc
+++ b/glom/utility_widgets/canvas/canvas_rect_movable.cc
@@ -21,8 +21,6 @@
 #include "canvas_rect_movable.h"
 #include <libglom/utils.h>
 #include <goocanvasmm/canvas.h>
-#include <gdkmm/cursor.h>
-#include <iostream>
 
 namespace Glom
 {
diff --git a/glom/utility_widgets/canvas/canvas_table_movable.cc 
b/glom/utility_widgets/canvas/canvas_table_movable.cc
index 63ff486..d0252e9 100644
--- a/glom/utility_widgets/canvas/canvas_table_movable.cc
+++ b/glom/utility_widgets/canvas/canvas_table_movable.cc
@@ -21,7 +21,6 @@
 #include "canvas_table_movable.h"
 #include <libglom/utils.h>
 #include <goocanvasmm/canvas.h>
-#include <gdkmm/cursor.h>
 #include <iostream>
 
 namespace Glom
diff --git a/glom/utility_widgets/dialog_flowtable.cc b/glom/utility_widgets/dialog_flowtable.cc
index a6721a1..0ff8d8f 100644
--- a/glom/utility_widgets/dialog_flowtable.cc
+++ b/glom/utility_widgets/dialog_flowtable.cc
@@ -21,7 +21,6 @@
 
 #include "dialog_flowtable.h"
 #include <glom/appwindow.h>
-#include <glibmm/i18n.h>
 
 namespace Glom
 {
diff --git a/glom/utility_widgets/imageglom.cc b/glom/utility_widgets/imageglom.cc
index 4974914..fcae90f 100644
--- a/glom/utility_widgets/imageglom.cc
+++ b/glom/utility_widgets/imageglom.cc
@@ -31,7 +31,6 @@
 #include <libglom/file_utils.h>
 #include <gtkmm/appchooserdialog.h>
 #include <gtkmm/filechooserdialog.h>
-#include <giomm/file.h>
 #include <giomm/contenttype.h>
 #include <giomm/menu.h>
 #include <libgda/gda-blob-op.h>
diff --git a/glom/utility_widgets/notebook_noframe.cc b/glom/utility_widgets/notebook_noframe.cc
index 4a028e1..719761b 100644
--- a/glom/utility_widgets/notebook_noframe.cc
+++ b/glom/utility_widgets/notebook_noframe.cc
@@ -21,7 +21,6 @@
 #include "notebook_noframe.h"
 #include <glom/utils_ui.h>
 #include <libglom/utils.h>
-#include <gtkmm/label.h>
 #include <gtkmm/togglebutton.h>
 #include <glibmm/i18n.h>
 //#include <sstream> //For stringstream
diff --git a/glom/utility_widgets/notebookglom.cc b/glom/utility_widgets/notebookglom.cc
index 26464b3..e7b5324 100644
--- a/glom/utility_widgets/notebookglom.cc
+++ b/glom/utility_widgets/notebookglom.cc
@@ -21,7 +21,6 @@
 #include "notebookglom.h"
 #include <gtkmm/messagedialog.h>
 #include <glom/appwindow.h>
-#include <glibmm/i18n.h>
 //#include <sstream> //For stringstream
 
 namespace Glom
diff --git a/glom/utility_widgets/notebooklabelglom.cc b/glom/utility_widgets/notebooklabelglom.cc
index 1211cfd..aedae7a 100644
--- a/glom/utility_widgets/notebooklabelglom.cc
+++ b/glom/utility_widgets/notebooklabelglom.cc
@@ -20,8 +20,6 @@
 
 #include "notebooklabelglom.h"
 #include <glom/appwindow.h>
-#include <gtkmm/menu.h>
-#include <giomm/menu.h>
 #include <glibmm/i18n.h>
 
 #include <iostream>
diff --git a/glom/utils_ui.cc b/glom/utils_ui.cc
index acc991b..28bd685 100644
--- a/glom/utils_ui.cc
+++ b/glom/utils_ui.cc
@@ -35,21 +35,9 @@
 #include <glibmm/convert.h>
 #include <glibmm/miscutils.h>
 #include <glibmm/fileutils.h>
-
-#include <giomm/file.h>
 #include <glibmm/main.h>
 #include <glibmm/i18n.h>
-
-#include <string.h> // for strchr
-#include <sstream> //For stringstream
-
-#include <iostream>
-#include <fstream>
-
-#include <locale>     // for locale, time_put
-#include <ctime>     // for struct tm
 #include <iostream>   // for cout, endl
-#include <iomanip>
 
 #include <stack>
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]