patches from jeremy collins

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1658 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas
1999-01-30 20:19:59 +00:00
parent 63413cc327
commit 102585bd96
3 changed files with 29 additions and 18 deletions

View File

@@ -346,7 +346,7 @@ accWindow (AccountGroup *grp) {
gnome_dialog_button_connect (GNOME_DIALOG (accData->dialog), 1,
GTK_SIGNAL_FUNC (gnc_ui_accWindow_cancelled_callback),
accData->dialog);
accData);
/*** End of Callbacks *********************************************/

View File

@@ -162,20 +162,20 @@ gnc_ui_acct_tree_fill(GtkTree *item, AccountGroup *accts, int subtree)
void
gnc_ui_refresh_tree() {
/** This is ugly... how do we do this nicer? */
GList *items;
GList *list;
/* Make sure we are at the top of the tree */
list = GTK_TREE( GTK_TREE_ROOT_TREE ( mwindow->maintree ) )->children;
gtk_tree_remove_items ( GTK_TREE_ROOT_TREE( mwindow->maintree ), list);
mwindow->maintree = GTK_TREE_ROOT_TREE ( mwindow->maintree );
items = GTK_TREE_SELECTION ( mwindow->maintree );
gtk_tree_clear_items ( mwindow->maintree, 0, g_list_length(items) );
mwindow->root_item = mwindow->maintree;
/* Refill Tree with fresh data */
gnc_ui_acct_tree_fill(mwindow->root_item,
xaccSessionGetGroup(current_session),
-1);
-1);
}
@@ -343,7 +343,7 @@ static GnomeUIInfo filemenu[] = {
{GNOME_APP_UI_ITEM,
N_("New"), N_("Create New File."),
NULL, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_ABOUT,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_NEW,
0, 0, NULL},
{GNOME_APP_UI_ITEM,
N_("Open"), N_("Open File."),
@@ -351,10 +351,21 @@ static GnomeUIInfo filemenu[] = {
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_OPEN,
0,0, NULL},
{GNOME_APP_UI_ITEM,
N_("Save"), N_("Save File."),
file_cmd_save, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_SAVE,
0, 0, NULL},
{GNOME_APP_UI_ITEM,
N_("Import"), N_("Import QIF File."),
file_cmd_import, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL,
0, 0, NULL},
GNOMEUIINFO_SEPARATOR,
{GNOME_APP_UI_ITEM,
N_("Quit"), N_("Quit Gnucash."),
gnc_shutdown, NULL, NULL,
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_QUIT,
0, 0, NULL},
GNOMEUIINFO_END
};

View File

@@ -20,7 +20,7 @@
\********************************************************************/
#include "MenuCommands.h"
// #incldue "FileDialog.h"
#include "FileDialog.h"
/* hack alert -- the right way to imoplement the missing function
* below is to move the file src/motif/FileDialog.c to some
@@ -32,24 +32,24 @@
void
file_cmd_open (GtkWidget *widget, gpointer data)
{
// gncFileOpen();
gncFileOpen();
}
void
file_cmd_import (GtkWidget *widget, gpointer data)
{
// gncFileQIFImport();
gncFileQIFImport();
}
void
file_cmd_save(GtkWidget *widget, gpointer data)
{
// gncFileSave();
gncFileSave();
}
void file_cmd_quit (GtkWidget *widget, gpointer data)
{
// gncFileQuit();
//gncFileQuit();
//gnucash_shutdown(NULL, NULL);
gtk_main_quit();
}