mirror of https://github.com/Gnucash/gnucash
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1787 57a11ea4-9604-0410-9ed3-97b8803252fdzzzoldreleases/1.4
parent
45c1b04155
commit
11a1bb072b
@ -1,57 +0,0 @@
|
||||
/*-*-gnucash-c-*-****************************************************\
|
||||
* MenuCommands.c -- just what it says *
|
||||
* Copyright (C) 1998 Jeremy Collins *
|
||||
* Copyright (C) 1998 Linas Vepstas *
|
||||
* *
|
||||
* 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 the Free Software Foundation; either version 2 of *
|
||||
* the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License*
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
|
||||
* *
|
||||
\********************************************************************/
|
||||
|
||||
#include "FileDialog.h"
|
||||
#include "MainWindow.h"
|
||||
#include "window-main-menu.h"
|
||||
|
||||
/* hack alert -- the right way to imoplement the missing function
|
||||
* below is to move the file src/motif/FileDialog.c to some
|
||||
* GUI-neutral directory, and dual-compile it for motif and for
|
||||
* gtk. Then simple invoke gncFileOpen, etc. and Viola, instant
|
||||
* function! We are done!
|
||||
*/
|
||||
|
||||
void
|
||||
file_cmd_open (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
gncFileOpen();
|
||||
refreshMainWindow();
|
||||
}
|
||||
|
||||
void
|
||||
file_cmd_import (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
gncFileQIFImport();
|
||||
}
|
||||
|
||||
void
|
||||
file_cmd_save(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
gncFileSave();
|
||||
}
|
||||
|
||||
void file_cmd_quit (GtkWidget *widget, gpointer data)
|
||||
{
|
||||
//gncFileQuit();
|
||||
//gnucash_shutdown(NULL, NULL);
|
||||
gtk_main_quit();
|
||||
}
|
||||
@ -1,52 +0,0 @@
|
||||
/********************************************************************\
|
||||
* window-main-menu.h -- just what is says *
|
||||
* Copyright (C) 1998 Jeremy Collins *
|
||||
* *
|
||||
* 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 the Free Software Foundation; either version 2 of *
|
||||
* the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License*
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
|
||||
* *
|
||||
\********************************************************************/
|
||||
|
||||
#ifndef __WINDOW_MAIN_MENU_H__
|
||||
#define __WINDOW_MAIN_MENU_H__
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#include "config.h"
|
||||
|
||||
/** STRUCTS *********************************************************/
|
||||
|
||||
/** PROTOTYPES ******************************************************/
|
||||
void gnucash_shutdown (GtkWidget *widget, gpointer *data);
|
||||
void file_cmd_open (GtkWidget *widget, gpointer data);
|
||||
void file_cmd_import (GtkWidget *widget, gpointer data);
|
||||
void file_cmd_quit (GtkWidget *widget, gpointer data);
|
||||
void file_cmd_save (GtkWidget *widget, gpointer data);
|
||||
/* void prepare_app ( void ); */
|
||||
|
||||
/** GLOBALS *********************************************************/
|
||||
//extern char *helpPath;
|
||||
extern GtkWidget *app;
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
Local Variables:
|
||||
tab-width: 2
|
||||
indent-tabs-mode: nil
|
||||
mode: c-modet
|
||||
c-indentation-style: gnu
|
||||
eval: (c-set-offset 'block-open '-)
|
||||
End:
|
||||
*/
|
||||
Loading…
Reference in new issue