[gimp] app: don't populate the tool preset factory with data in no-interface mode
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't populate the tool preset factory with data in no-interface mode
- Date: Tue, 17 May 2011 12:57:05 +0000 (UTC)
commit cebd34293c35f25a88553ffa4140a9f9397e2c32
Author: Michael Natterer <mitch gimp org>
Date: Tue May 17 14:54:40 2011 +0200
app: don't populate the tool preset factory with data in no-interface mode
but keep the factory around anyway so the code stays simple.
app/core/gimp.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimp.c b/app/core/gimp.c
index f82af60..f703381 100644
--- a/app/core/gimp.c
+++ b/app/core/gimp.c
@@ -977,10 +977,13 @@ gimp_restore (Gimp *gimp,
if (! gimp->no_fonts)
gimp_fonts_load (gimp);
- /* initialize the list of gimp tool presets */
- status_callback (NULL, _("Tool Presets"), 0.65);
- gimp_data_factory_data_init (gimp->tool_preset_factory, gimp->user_context,
- gimp->no_data);
+ /* initialize the list of gimp tool presets if we have a GUI */
+ if (! gimp->no_interface)
+ {
+ status_callback (NULL, _("Tool Presets"), 0.65);
+ gimp_data_factory_data_init (gimp->tool_preset_factory, gimp->user_context,
+ gimp->no_data);
+ }
/* initialize the template list */
status_callback (NULL, _("Templates"), 0.7);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]