Re: [Gimp-developer] [PATCH] app: Get rid of config - display module dependency

2010-02-01 Thread Sven Neumann
Hi,

On Sun, 2010-01-31 at 18:27 +0100, Martin Nordholts wrote:
 In order to make a clear separation between the core modules and the
 UI modules, move the necessary enums from display-enums.h and
 widgets-enums.h to config-enums.h and the files
 gimpdisplayoptions.[ch] from the display to the config module. This
 removes the config - display dependency.
 
 This change has three main benefits
  * It lets us remove includes of display files from the config module
  * We don't have to link gimp-console and test-config with a subset of
object files from the display module
  * It is reflected in devel-docs/gimp-module-dependencies.svg that the
application is made up of core modules and UI modules and that no
core module depends on any UI module
 ---
  app/Makefile.am   |3 -
  app/actions/view-actions.c|2 +-
  app/actions/view-commands.c   |2 +-
  app/config/Makefile.am|   38 ++-
  app/config/config-enums.c |  226 +++
  app/config/config-enums.h |  105 +
  app/config/config-types.h |7 +-
  app/config/gimpdisplayconfig.c|9 +-
  app/config/gimpdisplayconfig.h|2 -
  app/config/gimpdisplayoptions.c   |  350 
  app/config/gimpdisplayoptions.h   |   72 
  app/config/gimpguiconfig.h|2 -
  app/config/gimppluginconfig.h |2 -
  app/core/core-types.h |3 -
  app/display/Makefile.am   |2 -
  app/display/display-enums.c   |  124 --
  app/display/display-enums.h   |   49 ---
  app/display/gimpdisplayoptions.c  |  351 
  app/display/gimpdisplayoptions.h  |   72 
  app/display/gimpdisplayshell-appearance.c |3 +-
  app/display/gimpdisplayshell-handlers.c   |2 +-
  app/display/gimpdisplayshell.c|2 +-
  app/widgets/widgets-enums.c   |   89 
  app/widgets/widgets-enums.h   |   34 --
  devel-docs/gimp-module-dependencies.svg   |  618 
 +++--
  25 files changed, 1113 insertions(+), 1056 deletions(-)

As far as I can see there are no enums with translations left in
display-enums.h after your patch. So you could remove it from
po/POTFILES.in. Other than that, the patch looks good. Even though I
still don't quite follow your argumentation that it is an improvement, I
won't object to this change.


Sven


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] [PATCH] app: Get rid of config - display module dependency

2010-02-01 Thread Martin Nordholts
On 02/01/2010 08:50 PM, Sven Neumann wrote:
 As far as I can see there are no enums with translations left in
 display-enums.h after your patch. So you could remove it from
 po/POTFILES.in.

Well spotted. I have adjusted POTFILES.in and commited the patch.

  / Martin
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] [PATCH] app: Get rid of config - display module dependency

2010-01-31 Thread Martin Nordholts
On 01/31/2010 06:27 PM, Martin Nordholts wrote:
 Here is the patch that removes the config - display dependency

... I thought. It was 40kb and requires moderator approval, so we'll 
have to wait for that.

  / Martin
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer