Commit 98b929f1 authored by Alexandre Franke's avatar Alexandre Franke

Clean up GLib and GTK+ includes (#590485)

parent 0d76cc7c
......@@ -21,7 +21,6 @@
*/
#include <config.h>
#include <glib/gerror.h>
#include "mrp-error.h"
GQuark
......
......@@ -28,7 +28,7 @@
#include <math.h>
#include <string.h>
#include <glib/gstring.h>
#include <glib.h>
#include <libgnomecanvas/gnome-canvas-util.h>
/* FIXME: check for this in configure and use it. */
......
......@@ -21,7 +21,7 @@
*/
#include <config.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <libplanner/mrp-assignment.h>
#include <libplanner/mrp-resource.h>
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_CALENDAR_DIALOG_H__
#define __PLANNER_CALENDAR_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-window.h"
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_CALENDAR_SELECTOR_H__
#define __PLANNER_CALENDAR_SELECTOR_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-window.h"
......
......@@ -30,7 +30,7 @@
#define __PLANNER_CALENDAR_H__
#include <gdk/gdk.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#define PLANNER_TYPE_CALENDAR (planner_calendar_get_type ())
#define PLANNER_CALENDAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLANNER_TYPE_CALENDAR, PlannerCalendar))
......
......@@ -24,22 +24,7 @@
#include <config.h>
#include <stdlib.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtkmain.h>
#include <gtk/gtkcellrenderertext.h>
#include <gtk/gtkeditable.h>
#include <gtk/gtkhseparator.h>
#include <gtk/gtkbutton.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkoptionmenu.h>
#include <gtk/gtkmenuitem.h>
#include <gtk/gtkarrow.h>
#include <gtk/gtkwindow.h>
#include <gtk/gtkframe.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkhbbox.h>
#include <gtk/gtkstock.h>
#include <gtk/gtkcalendar.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include "planner-marshal.h"
#include "planner-format.h"
......
......@@ -25,7 +25,7 @@
#define __PLANNER_CELL_RENDERER_DATE_H__
#include <glib-object.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-time.h>
#include <libplanner/mrp-types.h>
#include "planner-cell-renderer-popup.h"
......
......@@ -23,20 +23,7 @@
#include <config.h>
#include <stdlib.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtkmain.h>
#include <gtk/gtkcellrenderertext.h>
#include <gtk/gtkeditable.h>
#include <gtk/gtkbutton.h>
#include <gtk/gtkarrow.h>
#include <gtk/gtkwindow.h>
#include <gtk/gtkframe.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkhbbox.h>
#include <gtk/gtkstock.h>
#include <gtk/gtktreeview.h>
#include <gtk/gtktreeselection.h>
#include <gtk/gtkliststore.h>
#include <gtk/gtk.h>
#include "planner-marshal.h"
#include "planner-cell-renderer-list.h"
#include "planner-popup-entry.h"
......
......@@ -24,7 +24,7 @@
#define __PLANNER_CELL_RENDERER_LIST_H__
#include <glib-object.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include "planner-cell-renderer-popup.h"
#define PLANNER_TYPE_CELL_RENDERER_LIST (planner_cell_renderer_list_get_type ())
......
......@@ -22,12 +22,7 @@
#include <config.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtkcellrenderertext.h>
#include <gtk/gtkwindow.h>
#include <gtk/gtkmain.h>
#include <gtk/gtkeditable.h>
#include <gtk/gtksignal.h>
#include <gtk/gtkbutton.h>
#include <gtk/gtk.h>
#include "planner-marshal.h"
#include "planner-cell-renderer-popup.h"
#include "planner-popup-entry.h"
......
......@@ -2,7 +2,7 @@
#define __PLANNER_CELL_RENDERER_POPUP_H__
#include <pango/pango.h>
#include <gtk/gtkcellrenderertext.h>
#include <gtk/gtk.h>
#define PLANNER_TYPE_CELL_RENDERER_POPUP (planner_cell_renderer_popup_get_type ())
#define PLANNER_CELL_RENDERER_POPUP(obj) (GTK_CHECK_CAST ((obj), PLANNER_TYPE_CELL_RENDERER_POPUP, PlannerCellRendererPopup))
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_DAY_TYPE_DIALOG_H__
#define __PLANNER_DAY_TYPE_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-window.h"
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_DEFAULT_WEEK_DIALOG_H__
#define __PLANNER_DEFAULT_WEEK_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include <libplanner/mrp-calendar.h>
#include "planner-window.h"
......
......@@ -23,9 +23,7 @@
#ifndef __PLANNER_GANTT_CHART_H__
#define __PLANNER_GANTT_CHART_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#include <libgnomecanvas/gnome-canvas.h>
#include "planner-task-tree.h"
......
......@@ -25,7 +25,7 @@
#include <time.h>
#include <math.h>
#include <glib/gi18n.h>
#include <gtk/gtkcontainer.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-time.h>
#include "planner-marshal.h"
#include "planner-gantt-header.h"
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_GANTT_HEADER_H__
#define __PLANNER_GANTT_HEADER_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#define PLANNER_TYPE_GANTT_HEADER (planner_gantt_header_get_type ())
#define PLANNER_GANTT_HEADER(obj) (GTK_CHECK_CAST ((obj), PLANNER_TYPE_GANTT_HEADER, PlannerGanttHeader))
......
......@@ -25,8 +25,7 @@
#include <string.h>
#include <time.h>
#include <glib.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtktreednd.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <libplanner/mrp-task.h>
#include "planner-marshal.h"
......
......@@ -25,7 +25,7 @@
#include <libplanner/mrp-project.h>
#include <libplanner/mrp-task.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#define PLANNER_TYPE_GANTT_MODEL (planner_gantt_model_get_type ())
#define PLANNER_GANTT_MODEL(obj) (GTK_CHECK_CAST ((obj), PLANNER_TYPE_GANTT_MODEL, PlannerGanttModel))
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_GANTT_PRINT_H__
#define __PLANNER_GANTT_PRINT_H__
#include <gtk/gtktreeview.h>
#include <gtk/gtk.h>
#include "planner-print-job.h"
#include "planner-view.h"
......
......@@ -24,7 +24,7 @@
#ifndef __PLANNER_RESOURCES_GROUP_DIALOG_H__
#define __PLANNER_RESOURCES_GROUP_DIALOG_H__
#include <gtk/gtkwindow.h>
#include <gtk/gtk.h>
#include "planner-view.h"
GtkWidget * planner_group_dialog_new (PlannerView *view);
......
......@@ -22,7 +22,7 @@
*/
#include <config.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include "planner-group-model.h"
......
......@@ -25,8 +25,7 @@
#define __PLANNER_GROUP_MODEL_H__
#include <glib-object.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtktreesortable.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include <libplanner/mrp-group.h>
#include "planner-list-model.h"
......
......@@ -22,7 +22,7 @@
*/
#include <config.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <string.h>
......
......@@ -25,8 +25,7 @@
#define __PLANNER_LIST_MODEL_H__
#include <glib-object.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtktreesortable.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-object.h>
#define PLANNER_TYPE_LIST_MODEL (planner_list_model_get_type ())
......
......@@ -23,8 +23,7 @@
#include <config.h>
#include <string.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtkmain.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#ifdef WITH_GNOME
#include <libgnome/gnome-program.h>
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_PHASE_DIALOG_H__
#define __PLANNER_PHASE_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-window.h"
......
......@@ -24,7 +24,7 @@
#define __PLANNER_PLUGIN_H__
#include <gmodule.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include "planner-window.h"
#define PLANNER_TYPE_PLUGIN (planner_plugin_get_type ())
......
......@@ -21,7 +21,7 @@
#ifndef __PLANNER_POPUP_BUTTON_H__
#define __PLANNER_POPUP_BUTTON_H__
#include <gtk/gtktogglebutton.h>
#include <gtk/gtk.h>
#define PLANNER_TYPE_POPUP_BUTTON (planner_popup_button_get_type ())
#define PLANNER_POPUP_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLANNER_TYPE_POPUP_BUTTON, PlannerPopupButton))
......
......@@ -22,13 +22,7 @@
#include <config.h>
#include <string.h>
#include <gtk/gtkwindow.h>
#include <gtk/gtkbutton.h>
#include <gtk/gtkentry.h>
#include <gtk/gtkarrow.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkeventbox.h>
#include <gtk/gtkcelleditable.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include "planner-popup-entry.h"
......
......@@ -24,7 +24,7 @@
#define __PLANNER_POPUP_ENTRY_H__
#include <pango/pango.h>
#include <gtk/gtkeventbox.h>
#include <gtk/gtk.h>
#define PLANNER_TYPE_POPUP_ENTRY (planner_popup_entry_get_type ())
#define PLANNER_POPUP_ENTRY(obj) (GTK_CHECK_CAST ((obj), PLANNER_TYPE_POPUP_ENTRY, PlannerPopupEntry))
......
......@@ -22,7 +22,7 @@
*/
#include <config.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include "planner-predecessor-model.h"
......
......@@ -29,17 +29,7 @@
#include <stdlib.h>
#include <glib/gi18n.h>
#include <glade/glade.h>
#include <gtk/gtkdialog.h>
#include <gtk/gtkentry.h>
#include <gtk/gtkmessagedialog.h>
#include <gtk/gtkoptionmenu.h>
#include <gtk/gtkmenuitem.h>
#include <gtk/gtktreeview.h>
#include <gtk/gtkliststore.h>
#include <gtk/gtkcellrenderertext.h>
#include <gtk/gtkcellrenderertoggle.h>
#include <gtk/gtktreeselection.h>
#include <gtk/gtkmain.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-object.h>
#include <libplanner/mrp-property.h>
#include "libplanner/mrp-paths.h"
......
......@@ -22,7 +22,7 @@
#ifndef __PLANNER_PROPERTY_DIALOG_H__
#define __PLANNER_PROPERTY_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-window.h"
......
......@@ -24,7 +24,7 @@
#include <config.h>
#include <string.h>
#include <glib/gi18n.h>
#include <gtk/gtkliststore.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-property.h>
#include "planner-property-model.h"
......
......@@ -22,7 +22,7 @@
#ifndef __PLANNER_PROPERTY_MODEL_H__
#define __PLANNER_PROPERTY_MODEL_H__
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
enum {
......
......@@ -24,7 +24,7 @@
#ifndef __PLANNER_RESOURCE_INPUT_DIALOG_H__
#define __PLANNER_RESOURCE_INPUT_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include "planner-window.h"
GtkWidget * planner_resource_input_dialog_new (PlannerWindow *main_window);
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_SIDEBAR_H__
#define __PLANNER_SIDEBAR_H__
#include <gtk/gtkframe.h>
#include <gtk/gtk.h>
#define PLANNER_TYPE_SIDEBAR (planner_sidebar_get_type ())
#define PLANNER_SIDEBAR(obj) (GTK_CHECK_CAST ((obj), PLANNER_TYPE_SIDEBAR, PlannerSidebar))
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_TABLE_PRINT_SHEET_H__
#define __PLANNER_TABLE_PRINT_SHEET_H__
#include <gtk/gtktreeview.h>
#include <gtk/gtk.h>
#include "planner-print-job.h"
#include "planner-view.h"
......
......@@ -21,7 +21,7 @@
#ifndef __PLANNER_TASK_DATE_WIDGET_H__
#define __PLANNER_TASK_DATE_WIDGET_H__
#include <gtk/gtktogglebutton.h>
#include <gtk/gtk.h>
#define PLANNER_TYPE_TASK_DATE_WIDGET (planner_task_date_widget_get_type ())
#define PLANNER_TASK_DATE_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PLANNER_TYPE_TASK_DATE_WIDGET, PlannerTaskDateWidget))
......
......@@ -22,7 +22,7 @@
#ifndef __PLANNER_TASK_DIALOG_H__
#define __PLANNER_TASK_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-window.h"
......
......@@ -24,7 +24,7 @@
#ifndef __PLANNER_TASK_INPUT_DIALOG_H__
#define __PLANNER_TASK_INPUT_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include "planner-window.h"
GtkWidget * planner_task_input_dialog_new (PlannerWindow *main_window);
......
......@@ -19,9 +19,7 @@
*/
#include <config.h>
#include <gtk/gtkiconfactory.h>
#include <gtk/gtkstock.h>
#include <gtk/gtkmenu.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include "libplanner/mrp-paths.h"
#include "planner-task-tree.h"
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_TASK_TREE_H__
#define __PLANNER_TASK_TREE_H__
#include <gtk/gtktreeview.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-gantt-model.h"
#include "planner-window.h"
......
......@@ -23,9 +23,7 @@
#ifndef __PLANNER_USAGE_CHART_H__
#define __PLANNER_USAGE_CHART_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtkvbox.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#include <libgnomecanvas/gnome-canvas.h>
#include "planner-usage-tree.h"
......
......@@ -27,8 +27,7 @@
#include <time.h>
#include <glib.h>
#include <stdio.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtktreednd.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <libplanner/mrp-task.h>
#include "planner-marshal.h"
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_USAGE_MODEL_H__
#define __PLANNER_USAGE_MODEL_H__
#include <gtk/gtktreemodel.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include <libplanner/mrp-task.h>
#include <libplanner/mrp-resource.h>
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_USAGE_TREE__
#define __PLANNER_USAGE_TREE__
#include <gtk/gtktreeview.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-usage-model.h"
#include "planner-window.h"
......
......@@ -25,8 +25,7 @@
#define __PLANNER_WINDOW_H__
#include <libplanner/mrp-project.h>
#include <gtk/gtkuimanager.h>
#include <gtk/gtkwindow.h>
#include <gtk/gtk.h>
#include "planner-application.h"
#include "planner-cmd-manager.h"
......
......@@ -23,7 +23,7 @@
#ifndef __PLANNER_WORKING_TIME_DIALOG_H__
#define __PLANNER_WORKING_TIME_DIALOG_H__
#include <gtk/gtkwidget.h>
#include <gtk/gtk.h>
#include <libplanner/mrp-project.h>
#include "planner-window.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment