mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix a circular dependancy.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7228 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
504a0ddc1f
commit
f6dc3a65c5
@ -14,6 +14,7 @@
|
||||
#include "gnc-file-p.h"
|
||||
#include "gnc-file-history.h"
|
||||
#include "gnc-file-dialog.h"
|
||||
#include "gnc-mdi-utils.h"
|
||||
#include "gnc-module.h"
|
||||
#include "gnc-module-api.h"
|
||||
|
||||
@ -72,6 +73,9 @@ libgncmod_app_file_LTX_gnc_module_init(int refcount)
|
||||
gnc_file_set_handlers (gnc_history_add_file,
|
||||
gnc_history_get_last,
|
||||
gnc_file_dialog);
|
||||
|
||||
gnc_file_set_pct_handler (gnc_mdi_file_percentage);
|
||||
|
||||
gnc_file_init ();
|
||||
}
|
||||
|
||||
@ -84,6 +88,7 @@ libgncmod_app_file_LTX_gnc_module_end(int refcount)
|
||||
if(refcount == 0)
|
||||
{
|
||||
gnc_file_set_handlers (NULL, NULL, NULL);
|
||||
gnc_file_set_pct_handler (NULL);
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ AM_CFLAGS = \
|
||||
-I${top_srcdir}/src/gnc-module \
|
||||
-I${top_srcdir}/src/engine \
|
||||
-I${top_srcdir}/src/network-utils \
|
||||
-I${top_srcdir}/src/app-file \
|
||||
-I${top_srcdir}/src/app-utils \
|
||||
-I${top_srcdir}/src \
|
||||
${GUILE_INCS} \
|
||||
@ -86,7 +85,6 @@ libgncmod_gnome_utils_la_LIBADD = \
|
||||
${top_builddir}/src/engine/libgncmod-engine.la \
|
||||
${top_builddir}/src/calculation/libgncmod-calculation.la \
|
||||
${top_builddir}/src/network-utils/libgncmod-network-utils.la \
|
||||
${top_builddir}/src/app-file/libgncmod-app-file.la \
|
||||
${top_builddir}/src/app-utils/libgncmod-app-utils.la \
|
||||
${GUILE_LIBS} \
|
||||
${GUPPI_LIBS} \
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "dialog-utils.h"
|
||||
#include "global-options.h"
|
||||
#include "gnc-component-manager.h"
|
||||
#include "gnc-file.h"
|
||||
#include "gnc-html.h"
|
||||
#include "gnc-mdi-utils.h"
|
||||
#include "gnc-ui-util.h"
|
||||
@ -97,7 +96,7 @@ gnc_mdi_set_toolbar_visibility (gboolean visible)
|
||||
gnc_toolbar_visible = visible;
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
gnc_mdi_file_percentage (const char *message, int percentage)
|
||||
{
|
||||
GtkWidget *app;
|
||||
@ -519,8 +518,6 @@ gnc_mdi_app_created_cb (GnomeMDI * mdi, GnomeApp * app, gpointer data)
|
||||
/* enable save and restore of menubar positions */
|
||||
gnome_app_enable_layout_config (app, TRUE);
|
||||
|
||||
gnc_file_set_pct_handler (gnc_mdi_file_percentage);
|
||||
|
||||
/* flag the app as gnc mdi created */
|
||||
gtk_object_set_data (GTK_OBJECT (app), "gnc_mdi", mainwin);
|
||||
|
||||
|
@ -118,6 +118,8 @@ void gnc_mdi_child_refresh (GNCMDIChildInfo *child);
|
||||
GNCMDIInfo * gnc_mdi_get_current (void);
|
||||
gboolean gnc_mdi_has_apps (void);
|
||||
|
||||
void gnc_mdi_file_percentage (const char *message, int percentage);
|
||||
|
||||
void gnc_app_set_title (GnomeApp *app);
|
||||
|
||||
void gnc_mdi_save (GNCMDIInfo * gnc_mdi, char * filename);
|
||||
|
Loading…
Reference in New Issue
Block a user