Commit 7d1ecd71 authored by A. Palsson's avatar A. Palsson Committed by Andre Miranda
Browse files

Codebase cleanup (!7)

Removed unused/unneccessary includes, macros, variables and deprecated
functions.
parent 5978dd43
......@@ -17,9 +17,7 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <gio/gio.h>
#include <string.h>
#include "app_menu_item.h"
......
......@@ -17,12 +17,8 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <gio/gio.h>
#include <libxfce4util/libxfce4util.h>
#if HAVE_MAGIC_H
#include <magic.h>
#endif
......
......@@ -17,18 +17,10 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <gdk/gdkx.h>
#include <X11/Xlib.h>
#include <xfconf/xfconf.h>
#include <libxfce4util/libxfce4util.h>
#include <libxfce4ui/libxfce4ui.h>
#include <gio/gio.h>
#include <libexif/exif-data.h>
#include "util.h"
#include "file.h"
#include "monitor_chooser.h"
#include "gnome_wallpaper_manager.h"
......
......@@ -21,22 +21,14 @@
* Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include <libxfce4util/libxfce4util.h>
#include <libexif/exif-data.h>
#include "util.h"
#include "file.h"
#include "thumbnailer.h"
#include "settings.h"
#include "marshal.h"
#include "icon_bar.h"
#define MINIMUM_ICON_ITEM_WIDTH 32
#define ICON_TEXT_PADDING 1
#define RSTTO_ICON_BAR_VALID_MODEL_AND_COLUMNS(obj) \
((obj)->priv->model != NULL && \
(obj)->priv->file_column != -1)
......
......@@ -20,13 +20,8 @@
* Copyright (c) Benedict Meurer <benny@xfce.org>
*/
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <libexif/exif-data.h>
#include "util.h"
#include "image_list.h"
#include "thumbnailer.h"
......
......@@ -17,19 +17,13 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <string.h>
#include <gio/gio.h>
#include <libxfce4ui/libxfce4ui.h>
#include <libexif/exif-data.h>
#include <cairo/cairo.h>
#include <math.h>
#include "util.h"
#include "image_viewer.h"
#include "settings.h"
#include "marshal.h"
/* Do not make this buffer too large,
* this breaks some pixbufloaders.
......@@ -2482,8 +2476,6 @@ rstto_motion_notify_event (GtkWidget *widget, GdkEventMotion *event)
gtk_adjustment_set_value (adjustment,
gtk_adjustment_get_lower (adjustment));
}
if (val != gtk_adjustment_get_value (adjustment))
gtk_adjustment_value_changed (adjustment);
}
if (viewer->priv->motion.y != viewer->priv->motion.current_y)
......@@ -2503,8 +2495,6 @@ rstto_motion_notify_event (GtkWidget *widget, GdkEventMotion *event)
gtk_adjustment_set_value (adjustment,
gtk_adjustment_get_lower (adjustment));
}
if (val != gtk_adjustment_get_value (adjustment))
gtk_adjustment_value_changed (adjustment);
}
break;
case RSTTO_IMAGE_VIEWER_MOTION_STATE_BOX_ZOOM:
......@@ -2768,14 +2758,6 @@ rstto_button_release_event (GtkWidget *widget, GdkEventButton *event)
g_object_thaw_notify(G_OBJECT(viewer->vadjustment));
g_object_thaw_notify(G_OBJECT(viewer->hadjustment));
/*
* Trigger the 'changed' signal, update the rest
* of
* the appliaction.
*/
gtk_adjustment_changed(viewer->hadjustment);
gtk_adjustment_changed(viewer->vadjustment);
g_signal_emit_by_name(viewer, "scale-changed");
}
break;
......
......@@ -25,14 +25,9 @@
#include <xfconf/xfconf.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <string.h>
#include <libxfce4ui/libxfce4ui.h>
#include <libxfce4util/libxfce4util.h>
#include <libexif/exif-data.h>
#include "util.h"
#include "file.h"
#include "image_list.h"
#include "settings.h"
......
......@@ -19,7 +19,6 @@
#include <config.h>
#include <gdk/gdkkeysyms.h>
#include <X11/Xlib.h>
#include <string.h>
#include <gio/gio.h>
......@@ -28,8 +27,6 @@
#include <libxfce4ui/libxfce4ui.h>
#include <libexif/exif-data.h>
#include <cairo/cairo.h>
#include "settings.h"
#include "mime_db.h"
#include "util.h"
......
......@@ -17,16 +17,8 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <glib.h>
#include <gio/gio.h>
#include <locale.h>
#include <libxfce4util/libxfce4util.h>
......
......@@ -17,8 +17,6 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <string.h>
#include <math.h>
#include "monitor_chooser.h"
......
......@@ -17,9 +17,7 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <libxfce4ui/libxfce4ui.h>
#include <libxfce4util/libxfce4util.h>
#include "util.h"
#include "settings.h"
......
......@@ -17,9 +17,7 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <libxfce4ui/libxfce4ui.h>
#include <libxfce4util/libxfce4util.h>
#include "settings.h"
#include "privacy_dialog.h"
......
......@@ -17,14 +17,11 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <libexif/exif-data.h>
#include <libxfce4util/libxfce4util.h>
#include "settings.h"
#include "util.h"
#include "file.h"
#include "properties_dialog.h"
......@@ -64,7 +61,7 @@ enum
EXIF_PROP_MAKE,
EXIF_PROP_APERATURE,
EXIF_PROP_COUNT
} RsttoExifProp;
};
enum
{
......
......@@ -17,8 +17,6 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <glib.h>
#include <gdk/gdkkeysyms.h>
#include <xfconf/xfconf.h>
......
......@@ -17,22 +17,17 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>
#include <libexif/exif-data.h>
#include <libxfce4util/libxfce4util.h>
#include "util.h"
#include "file.h"
#include "settings.h"
#include "thumbnailer.h"
#include "marshal.h"
#include "tumbler.h"
static void
......
......@@ -17,7 +17,4 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <locale.h>
#include "util.h"
......@@ -17,16 +17,9 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <string.h>
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <libexif/exif-data.h>
#include "util.h"
#include "wallpaper_manager.h"
gint
......
......@@ -17,23 +17,12 @@
* 02110-1301, USA.
*/
#include <config.h>
#include <glib.h>
#include <gdk/gdkx.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <xfconf/xfconf.h>
#include <libxfce4ui/libxfce4ui.h>
#include <libxfce4util/libxfce4util.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk-pixbuf/gdk-pixdata.h>
#include <libexif/exif-data.h>
#include "util.h"
#include "file.h"
#include "monitor_chooser.h"
#include "xfce_wallpaper_manager.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