Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
fc1de7b4
Commit
fc1de7b4
authored
Apr 14, 1999
by
Marc Lehmann
Browse files
*** empty log message ***
parent
b809f23b
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
fc1de7b4
This diff is collapsed.
Click to expand it.
app/app_procs.c
View file @
fc1de7b4
...
...
@@ -613,6 +613,7 @@ app_exit_finish (void)
message_handler
=
CONSOLE
;
we_are_exiting
=
TRUE
;
module_db_free
();
device_status_free
();
lc_dialog_free
();
gdisplays_delete
();
...
...
app/dialogs/module-dialog.c
View file @
fc1de7b4
...
...
@@ -140,7 +140,37 @@ module_db_init (void)
#endif
}
/* not closing the module at exit time is safer and faster. */
static
void
free_a_single_module_cb
(
void
*
data
)
{
module_info
*
mod
=
data
;
g_return_if_fail
(
mod
->
state
==
ST_UNLOAD_REQUESTED
);
mod
->
info
=
NULL
;
mod
->
state
=
ST_UNLOADED_OK
;
}
static
void
free_a_single_module
(
gpointer
data
,
gpointer
user_data
)
{
module_info
*
mod
=
data
;
if
(
mod
->
module
&&
mod
->
unload
&&
mod
->
state
==
ST_LOADED_OK
)
{
mod
->
state
=
ST_UNLOAD_REQUESTED
;
gimp_module_ref
(
mod
);
mod
->
unload
(
mod
->
info
->
shutdown_data
,
free_a_single_module_cb
,
mod
);
}
}
void
module_db_free
(
void
)
{
gimp_set_foreach
(
modules
,
free_a_single_module
,
NULL
);
}
GtkWidget
*
module_db_browser_new
(
void
)
...
...
app/dialogs/module-dialog.h
View file @
fc1de7b4
...
...
@@ -23,6 +23,9 @@
/* Load any modules we find on the module-path set in the gimprc */
void
module_db_init
(
void
);
/* Unload all modules, in case a module needs some cleanups */
void
module_db_free
(
void
);
GtkWidget
*
module_db_browser_new
(
void
);
...
...
app/gui/module-browser.c
View file @
fc1de7b4
...
...
@@ -140,7 +140,37 @@ module_db_init (void)
#endif
}
/* not closing the module at exit time is safer and faster. */
static
void
free_a_single_module_cb
(
void
*
data
)
{
module_info
*
mod
=
data
;
g_return_if_fail
(
mod
->
state
==
ST_UNLOAD_REQUESTED
);
mod
->
info
=
NULL
;
mod
->
state
=
ST_UNLOADED_OK
;
}
static
void
free_a_single_module
(
gpointer
data
,
gpointer
user_data
)
{
module_info
*
mod
=
data
;
if
(
mod
->
module
&&
mod
->
unload
&&
mod
->
state
==
ST_LOADED_OK
)
{
mod
->
state
=
ST_UNLOAD_REQUESTED
;
gimp_module_ref
(
mod
);
mod
->
unload
(
mod
->
info
->
shutdown_data
,
free_a_single_module_cb
,
mod
);
}
}
void
module_db_free
(
void
)
{
gimp_set_foreach
(
modules
,
free_a_single_module
,
NULL
);
}
GtkWidget
*
module_db_browser_new
(
void
)
...
...
app/gui/module-browser.h
View file @
fc1de7b4
...
...
@@ -23,6 +23,9 @@
/* Load any modules we find on the module-path set in the gimprc */
void
module_db_init
(
void
);
/* Unload all modules, in case a module needs some cleanups */
void
module_db_free
(
void
);
GtkWidget
*
module_db_browser_new
(
void
);
...
...
app/module_db.c
View file @
fc1de7b4
...
...
@@ -140,7 +140,37 @@ module_db_init (void)
#endif
}
/* not closing the module at exit time is safer and faster. */
static
void
free_a_single_module_cb
(
void
*
data
)
{
module_info
*
mod
=
data
;
g_return_if_fail
(
mod
->
state
==
ST_UNLOAD_REQUESTED
);
mod
->
info
=
NULL
;
mod
->
state
=
ST_UNLOADED_OK
;
}
static
void
free_a_single_module
(
gpointer
data
,
gpointer
user_data
)
{
module_info
*
mod
=
data
;
if
(
mod
->
module
&&
mod
->
unload
&&
mod
->
state
==
ST_LOADED_OK
)
{
mod
->
state
=
ST_UNLOAD_REQUESTED
;
gimp_module_ref
(
mod
);
mod
->
unload
(
mod
->
info
->
shutdown_data
,
free_a_single_module_cb
,
mod
);
}
}
void
module_db_free
(
void
)
{
gimp_set_foreach
(
modules
,
free_a_single_module
,
NULL
);
}
GtkWidget
*
module_db_browser_new
(
void
)
...
...
app/module_db.h
View file @
fc1de7b4
...
...
@@ -23,6 +23,9 @@
/* Load any modules we find on the module-path set in the gimprc */
void
module_db_init
(
void
);
/* Unload all modules, in case a module needs some cleanups */
void
module_db_free
(
void
);
GtkWidget
*
module_db_browser_new
(
void
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment