GnuCash  4.12-68-g5dc52459a1+
Data Structures | Macros | Functions
gnc-plugin-file-history.c File Reference

Functions providing the file history menu. More...

#include <config.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <glib/gprintf.h>
#include <string.h>
#include "gnc-gkeyfile-utils.h"
#include "gnc-file.h"
#include "gnc-main-window.h"
#include "gnc-plugin-file-history.h"
#include "gnc-window.h"
#include "gnc-engine.h"
#include "gnc-prefs.h"
#include "gnc-uri-utils.h"

Go to the source code of this file.

Data Structures

struct  GncPluginFileHistoryPrivate
 The instance private data for a file history plugin. More...
 

Macros

#define FILENAME_STRING   "filename"
 
#define MAX_HISTORY_FILES   10 /* May be any number up to 10 */
 
#define GNC_PREFS_GROUP_HISTORY   "history"
 
#define GNC_PREF_HISTORY_MAXFILES   "maxfiles"
 
#define HISTORY_STRING_FILE_N   "file%d"
 
#define PLUGIN_ACTIONS_NAME   "gnc-plugin-file-history-actions"
 The label given to the main window for this plugin. More...
 
#define PLUGIN_UI_FILENAME   "gnc-plugin-file-history-ui.xml"
 The name of the UI description file for this plugin. More...
 
#define GNOME1_HISTORY   "History"
 
#define GNOME1_MAXFILES   "MaxFiles"
 
#define GNC_PLUGIN_FILE_HISTORY_GET_PRIVATE(o)   ((GncPluginFileHistoryPrivate*)gnc_plugin_file_history_get_instance_private((GncPluginFileHistory*)o))
 

Functions

void gnc_history_add_file (const char *filename)
 Add a file name to the front of the file "history list". More...
 
void gnc_history_remove_file (const char *oldfile)
 Remove all occurrences of a file name from the history list. More...
 
gboolean gnc_history_test_for_file (const char *oldfile)
 Test for a file name existing in the history list. More...
 
char * gnc_history_get_last (void)
 Retrieve the name of the file most recently accessed. More...
 
GncPlugingnc_plugin_file_history_new (void)
 Create a new file history plugin. More...
 

Detailed Description

Functions providing the file history menu.

Author
Copyright (C) 2003,2005 David Hampton hampt.nosp@m.on@e.nosp@m.mploy.nosp@m.ees..nosp@m.org

Definition in file gnc-plugin-file-history.c.