Commit 11309f8e authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

call actions_init() (gui_exit_after_callback): call actions_exit().

2004-04-27  Michael Natterer  <mitch@gimp.org>

	* app/gui/gui.c (gui_restore_callback): call actions_init()
	(gui_exit_after_callback): call actions_exit().

	* app/gui/menus.c (menus_init)
	(menu_exit): don't call them here.
parent bb0f359a
2004-04-27 Michael Natterer <mitch@gimp.org>
* app/gui/gui.c (gui_restore_callback): call actions_init()
(gui_exit_after_callback): call actions_exit().
* app/gui/menus.c (menus_init)
(menu_exit): don't call them here.
2004-04-26 Michael Natterer <mitch@gimp.org>
* app/widgets/widgets-types.h: added GimpUIManagerSetupFunc typedef.
......
......@@ -54,6 +54,7 @@
#include "widgets/gimpsessioninfo.h"
#include "widgets/gimpwidgets-utils.h"
#include "actions/actions.h"
#include "actions/dialogs-commands.h"
#include "color-history.h"
......@@ -314,6 +315,7 @@ gui_restore_callback (Gimp *gimp,
NULL);
}
actions_init (gimp);
menus_init (gimp);
render_init (gimp);
......@@ -440,6 +442,7 @@ gui_exit_after_callback (Gimp *gimp,
image_item_factory = NULL;
menus_exit (gimp);
actions_exit (gimp);
render_exit (gimp);
dialogs_exit (gimp);
......
......@@ -102,8 +102,6 @@ menus_init (Gimp *gimp)
menus_initialized = TRUE;
actions_init (gimp);
/* We need to make sure the property is installed before using it */
g_type_class_ref (GTK_TYPE_MENU);
......@@ -426,8 +424,6 @@ menus_exit (Gimp *gimp)
g_signal_handlers_disconnect_by_func (gimp->config,
menu_can_change_accels,
NULL);
actions_exit (gimp);
}
void
......@@ -466,9 +462,9 @@ void
menus_open_recent_add (GimpUIManager *manager,
const gchar *ui_path)
{
gint n_entries;
gint merge_id;
gint i;
gint n_entries;
guint merge_id;
gint i;
g_return_if_fail (GIMP_IS_UI_MANAGER (manager));
g_return_if_fail (ui_path != NULL);
......
......@@ -102,8 +102,6 @@ menus_init (Gimp *gimp)
menus_initialized = TRUE;
actions_init (gimp);
/* We need to make sure the property is installed before using it */
g_type_class_ref (GTK_TYPE_MENU);
......@@ -426,8 +424,6 @@ menus_exit (Gimp *gimp)
g_signal_handlers_disconnect_by_func (gimp->config,
menu_can_change_accels,
NULL);
actions_exit (gimp);
}
void
......@@ -466,9 +462,9 @@ void
menus_open_recent_add (GimpUIManager *manager,
const gchar *ui_path)
{
gint n_entries;
gint merge_id;
gint i;
gint n_entries;
guint merge_id;
gint i;
g_return_if_fail (GIMP_IS_UI_MANAGER (manager));
g_return_if_fail (ui_path != NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment