psppire-window: Avoid doubled separator in Windows menu.
[pspp] / src / ui / gui / psppire-window.h
index 0aa913c1f99edffcc23e51b59dbab1016dc574b9..f1273b17a84989e02d0635b6572215ca10029aeb 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2008, 2009, 2010, 2011  Free Software Foundation
+   Copyright (C) 2008, 2009, 2010, 2011, 2013  Free Software Foundation
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -22,6 +22,7 @@
 #include <glib.h>
 #include <glib-object.h>
 #include <gtk/gtk.h>
+#include "psppire-window-base.h"
 
 G_BEGIN_DECLS
 
@@ -57,7 +58,7 @@ typedef struct _PsppireWindowIface  PsppireWindowIface;
 
 struct _PsppireWindow
 {
-  GtkWindow parent;
+  PsppireWindowBase parent;
 
   /* <private> */
   gchar *filename;             /* File name, in file name encoding, or NULL. */
@@ -72,6 +73,7 @@ struct _PsppireWindow
   guint insert_handler;
   guint remove_handler;
 
+  gboolean added_separator;
   gboolean dirty;
   GTimeVal savetime;
 };
@@ -79,7 +81,7 @@ struct _PsppireWindow
 
 struct _PsppireWindowClass
 {
-  GtkWindowClass parent_class;
+  PsppireWindowBaseClass parent_class;
 };
 
 
@@ -114,6 +116,7 @@ gboolean psppire_window_load (PsppireWindow *w, const gchar *file);
 void psppire_window_open (PsppireWindow *de);
 GtkWidget *psppire_window_file_chooser_dialog (PsppireWindow *toplevel);
 
+void add_most_recent (const char *file_name, const char *mime_type);
 
 G_END_DECLS