#ifndef EV_APPLICATION_H
#define EV_APPLICATION_H
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <glib/gerror.h>
#include <glib-object.h>
+#ifdef WITH_GTK_PRINT
+#include <gtk/gtkprintsettings.h>
+#endif
+
#include "ev-window.h"
#include "egg-toolbars-model.h"
-#ifndef HAVE_GTK_RECENT
-#include "egg-recent-model.h"
-#endif
G_BEGIN_DECLS
#define EV_APP (ev_application_get_instance ())
-struct _EvApplication {
- GObject base_instance;
-
- gchar *toolbars_file;
-
- EggToolbarsModel *toolbars_model;
- EggToolbarsModel *preview_toolbars_model;
-
-#ifndef HAVE_GTK_RECENT
- EggRecentModel *recent_model;
-#endif
-
- gchar *last_chooser_uri;
-};
-
-struct _EvApplicationClass {
- GObjectClass base_class;
-};
-
-GType ev_application_get_type (void);
+GType ev_application_get_type (void) G_GNUC_CONST;
EvApplication *ev_application_get_instance (void);
gboolean ev_application_register_service (EvApplication *application);
void ev_application_shutdown (EvApplication *application);
EvLinkDest *dest,
EvWindowRunMode mode,
gboolean unlink_temp_file,
+ const gchar *print_settings,
guint32 timestamp);
void ev_application_open_uri_list (EvApplication *application,
GSList *uri_list,
guint32 timestamp);
GList *ev_application_get_windows (EvApplication *application);
-EggToolbarsModel *ev_application_get_toolbars_model (EvApplication *application,
- gboolean preview);
+EggToolbarsModel *ev_application_get_toolbars_model (EvApplication *application);
void ev_application_save_toolbars_model (EvApplication *application);
-#ifndef HAVE_GTK_RECENT
-EggRecentModel *ev_application_get_recent_model (EvApplication *application);
-#endif
void ev_application_set_chooser_uri (EvApplication *application,
const gchar *uri);
const gchar *ev_application_get_chooser_uri (EvApplication *application);
+void ev_application_screensaver_enable (EvApplication *application);
+void ev_application_screensaver_disable (EvApplication *application);
+#ifdef WITH_GTK_PRINT
+GtkPrintSettings *ev_application_get_print_settings (EvApplication *application);
+void ev_application_set_print_settings (EvApplication *application,
+ GtkPrintSettings *settings);
+#endif
G_END_DECLS