libgimp: rename the "misc" pdb group to "gimp"

So we finally have a proper place for PDB procedures that don't act on
an object like image, item, ...
This commit is contained in:
Michael Natterer 2011-03-08 13:58:56 +01:00
parent 95e498e0c0
commit 7fae2b2d40
12 changed files with 27 additions and 20 deletions

View File

@ -51,6 +51,7 @@ libappinternal_procs_a_SOURCES = \
floating-sel-cmds.c \
font-select-cmds.c \
fonts-cmds.c \
gimp-cmds.c \
gimprc-cmds.c \
gradient-cmds.c \
gradient-select-cmds.c \
@ -64,7 +65,6 @@ libappinternal_procs_a_SOURCES = \
item-transform-cmds.c \
layer-cmds.c \
message-cmds.c \
misc-cmds.c \
paint-tools-cmds.c \
palette-cmds.c \
palette-select-cmds.c \

View File

@ -95,7 +95,7 @@ quit_invoker (GimpProcedure *procedure,
}
void
register_misc_procs (GimpPDB *pdb)
register_gimp_procs (GimpPDB *pdb)
{
GimpProcedure *procedure;

View File

@ -51,6 +51,7 @@ internal_procs_init (GimpPDB *pdb)
register_floating_sel_procs (pdb);
register_font_select_procs (pdb);
register_fonts_procs (pdb);
register_gimp_procs (pdb);
register_gimprc_procs (pdb);
register_gradient_procs (pdb);
register_gradient_select_procs (pdb);
@ -64,7 +65,6 @@ internal_procs_init (GimpPDB *pdb)
register_item_transform_procs (pdb);
register_layer_procs (pdb);
register_message_procs (pdb);
register_misc_procs (pdb);
register_paint_tools_procs (pdb);
register_palette_procs (pdb);
register_palette_select_procs (pdb);

View File

@ -40,6 +40,7 @@ void register_fileops_procs (GimpPDB *pdb);
void register_floating_sel_procs (GimpPDB *pdb);
void register_font_select_procs (GimpPDB *pdb);
void register_fonts_procs (GimpPDB *pdb);
void register_gimp_procs (GimpPDB *pdb);
void register_gimprc_procs (GimpPDB *pdb);
void register_gradient_procs (GimpPDB *pdb);
void register_gradient_select_procs (GimpPDB *pdb);
@ -53,7 +54,6 @@ void register_item_procs (GimpPDB *pdb);
void register_item_transform_procs (GimpPDB *pdb);
void register_layer_procs (GimpPDB *pdb);
void register_message_procs (GimpPDB *pdb);
void register_misc_procs (GimpPDB *pdb);
void register_paint_tools_procs (GimpPDB *pdb);
void register_palette_procs (GimpPDB *pdb);
void register_palette_select_procs (GimpPDB *pdb);

View File

@ -68,6 +68,7 @@ INCLUDES = \
lib_LTLIBRARIES = libgimp-2.0.la libgimpui-2.0.la
PDB_WRAPPERS_C = \
gimp_pdb.c \
gimpbrush_pdb.c \
gimpbrushes_pdb.c \
gimpbrushselect_pdb.c \
@ -97,7 +98,6 @@ PDB_WRAPPERS_C = \
gimpitemtransform_pdb.c \
gimplayer_pdb.c \
gimpmessage_pdb.c \
gimpmisc_pdb.c \
gimppainttools_pdb.c \
gimppalette_pdb.c \
gimppalettes_pdb.c \
@ -121,6 +121,7 @@ PDB_WRAPPERS_C = \
PDB_WRAPPERS_H = \
gimp_pdb_headers.h \
gimp_pdb.h \
gimpbrush_pdb.h \
gimpbrushes_pdb.h \
gimpbrushselect_pdb.h \
@ -150,7 +151,6 @@ PDB_WRAPPERS_H = \
gimpitemtransform_pdb.h \
gimplayer_pdb.h \
gimpmessage_pdb.h \
gimpmisc_pdb.h \
gimppainttools_pdb.h \
gimppalette_pdb.h \
gimppalettes_pdb.h \

View File

@ -1,7 +1,7 @@
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimpmisc_pdb.c
* gimp_pdb.c
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -26,8 +26,8 @@
/**
* SECTION: gimpmisc
* @title: gimpmisc
* SECTION: gimp
* @title: gimp
* @short_description: Miscellaneous procedures
*
* Miscellaneous procedures not fitting in any category.

View File

@ -1,7 +1,7 @@
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
*
* gimpmisc_pdb.h
* gimp_pdb.h
*
* This library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@ -20,8 +20,8 @@
/* NOTE: This file is auto-generated by pdbgen.pl */
#ifndef __GIMP_MISC_PDB_H__
#define __GIMP_MISC_PDB_H__
#ifndef __GIMP_GIMP_PDB_H__
#define __GIMP_GIMP_PDB_H__
G_BEGIN_DECLS
@ -34,4 +34,4 @@ gint gimp_getpid (void);
G_END_DECLS
#endif /* __GIMP_MISC_PDB_H__ */
#endif /* __GIMP_GIMP_PDB_H__ */

View File

@ -23,6 +23,7 @@
#ifndef __GIMP_PDB_HEADERS_H__
#define __GIMP_PDB_HEADERS_H__
#include <libgimp/gimp_pdb.h>
#include <libgimp/gimpbrush_pdb.h>
#include <libgimp/gimpbrushes_pdb.h>
#include <libgimp/gimpbrushselect_pdb.h>
@ -52,7 +53,6 @@
#include <libgimp/gimpitemtransform_pdb.h>
#include <libgimp/gimplayer_pdb.h>
#include <libgimp/gimpmessage_pdb.h>
#include <libgimp/gimpmisc_pdb.h>
#include <libgimp/gimppainttools_pdb.h>
#include <libgimp/gimppalette_pdb.h>
#include <libgimp/gimppalettes_pdb.h>

View File

@ -18,6 +18,7 @@ pdb_sources = \
pdb/floating_sel.pdb \
pdb/font_select.pdb \
pdb/fonts.pdb \
pdb/gimp.pdb \
pdb/gimprc.pdb \
pdb/gradient.pdb \
pdb/gradient_select.pdb \
@ -31,7 +32,6 @@ pdb_sources = \
pdb/item_transform.pdb \
pdb/layer.pdb \
pdb/message.pdb \
pdb/misc.pdb \
pdb/paint_tools.pdb \
pdb/palette.pdb \
pdb/palette_select.pdb \

View File

@ -16,6 +16,7 @@
floating_sel
font_select
fonts
gimp
gimprc
gradient
gradient_select
@ -29,7 +30,6 @@
item_transform
layer
message
misc
paint_tools
palette
palette_select

View File

@ -508,8 +508,12 @@ LGPL
# We generate two files, a _pdb.h file with prototypes for all
# the functions we make, and a _pdb.c file for the actual implementation
while (my($group, $out) = each %out) {
my $hname = "gimp${group}pdb.h";
my $cname = "gimp${group}pdb.c";
my $hname = "${group}pdb.h";
my $cname = "${group}pdb.c";
if ($group ne 'gimp') {
$hname = "gimp${hname}";
$cname = "gimp${cname}";
}
$hname =~ s/_//g; $hname =~ s/pdb\./_pdb./;
$cname =~ s/_//g; $cname =~ s/pdb\./_pdb./;
my $hfile = "$destdir/$hname$FILE_EXT";
@ -689,7 +693,10 @@ SECTION_DOCS
HEADER
my @groups;
foreach $group (keys %out) {
my $hname = "gimp${group}pdb.h";
my $hname = "${group}pdb.h";
if ($group ne 'gimp') {
$hname = "gimp${hname}";
}
$hname =~ s/_//g; $hname =~ s/pdb\./_pdb./;
push @groups, $hname;
}

View File

@ -99,7 +99,7 @@ CODE
%exports = (app => [@procs], lib => [@procs[0..1]]);
$desc = 'Miscellaneous';
$doc_title = 'gimpmisc';
$doc_title = 'gimp';
$doc_short_desc = 'Miscellaneous procedures';
$doc_long_desc = 'Miscellaneous procedures not fitting in any category.';