libgimpbase/gimpwire.h libgimpbase/gimpreloc.h

2006-08-22  Sven Neumann  <sven@gimp.org>

	* libgimpbase/gimpwire.h
	* libgimpbase/gimpreloc.h
	* libgimp/gimpdrawablepreview.h
	* libgimp/gimptile.h
	* libgimp/gimpunitcache.h
	* libgimpthumb/gimpthumb-utils.h
	* libgimpwidgets/gimpcolorarea.h
	* libgimpwidgets/gimphelpui.h: moved G_GNUC_INTERNAL before the
	return value (bug #352268).

	* tools/pdbgen/lib.pl : changed code generation rules to place
	G_GNUC_INTERNAL before the return value.

	* libgimp/*_pdb.h: regenerated.
This commit is contained in:
Sven Neumann 2006-08-22 13:18:42 +00:00 committed by Sven Neumann
parent 218d4f0dff
commit d7766d344b
9 changed files with 133 additions and 117 deletions

View File

@ -1,7 +1,17 @@
2006-08-22 Sven Neumann <sven@gimp.org>
* libgimpbase/gimpwire.h
* libgimpbase/gimpreloc.h
* libgimp/gimpdrawablepreview.h
* libgimp/gimptile.h
* libgimp/gimpunitcache.h
* libgimpthumb/gimpthumb-utils.h
* libgimpwidgets/gimpcolorarea.h
* libgimpwidgets/gimphelpui.h: moved G_GNUC_INTERNAL before the
return value (bug #352268).
* tools/pdbgen/lib.pl : changed code generation rules to place
G_GNUC_INTERNAL before the return value (bug #352268).
G_GNUC_INTERNAL before the return value.
* libgimp/*_pdb.h: regenerated.

View File

@ -69,15 +69,15 @@ void gimp_drawable_preview_draw_region (GimpDrawablePreview *preview,
const GimpPixelRgn *region);
/* for internal use only */
void _gimp_drawable_preview_area_draw_thumb (GimpPreviewArea *area,
GimpDrawable *drawable,
gint width,
gint height) G_GNUC_INTERNAL;
gboolean _gimp_drawable_preview_get_bounds (GimpDrawable *drawable,
gint *xmin,
gint *ymin,
gint *xmax,
gint *ymax) G_GNUC_INTERNAL;
G_GNUC_INTERNAL void _gimp_drawable_preview_area_draw_thumb (GimpPreviewArea *area,
GimpDrawable *drawable,
gint width,
gint height);
G_GNUC_INTERNAL gboolean _gimp_drawable_preview_get_bounds (GimpDrawable *drawable,
gint *xmin,
gint *ymin,
gint *xmax,
gint *ymax);
G_END_DECLS

View File

@ -53,7 +53,7 @@ void gimp_tile_cache_ntiles (gulong ntiles);
/* private function */
void _gimp_tile_cache_flush_drawable (GimpDrawable *drawable) G_GNUC_INTERNAL;
G_GNUC_INTERNAL void _gimp_tile_cache_flush_drawable (GimpDrawable *drawable);
G_END_DECLS

View File

@ -26,26 +26,26 @@
G_BEGIN_DECLS
gint _gimp_unit_cache_get_number_of_units (void) G_GNUC_INTERNAL;
gint _gimp_unit_cache_get_number_of_built_in_units (void) G_GNUC_INTERNAL;
G_GNUC_INTERNAL gint _gimp_unit_cache_get_number_of_units (void);
G_GNUC_INTERNAL gint _gimp_unit_cache_get_number_of_built_in_units (void) G_GNUC_CONST;
GimpUnit _gimp_unit_cache_new (gchar *identifier,
gdouble factor,
gint digits,
gchar *symbol,
gchar *abbreviation,
gchar *singular,
gchar *plural) G_GNUC_INTERNAL;
gboolean _gimp_unit_cache_get_deletion_flag (GimpUnit unit) G_GNUC_INTERNAL;
void _gimp_unit_cache_set_deletion_flag (GimpUnit unit,
gboolean deletion_flag) G_GNUC_INTERNAL;
gdouble _gimp_unit_cache_get_factor (GimpUnit unit) G_GNUC_INTERNAL;
gint _gimp_unit_cache_get_digits (GimpUnit unit) G_GNUC_INTERNAL;
const gchar * _gimp_unit_cache_get_identifier (GimpUnit unit) G_GNUC_INTERNAL;
const gchar * _gimp_unit_cache_get_symbol (GimpUnit unit) G_GNUC_INTERNAL;
const gchar * _gimp_unit_cache_get_abbreviation (GimpUnit unit) G_GNUC_INTERNAL;
const gchar * _gimp_unit_cache_get_singular (GimpUnit unit) G_GNUC_INTERNAL;
const gchar * _gimp_unit_cache_get_plural (GimpUnit unit) G_GNUC_INTERNAL;
G_GNUC_INTERNAL GimpUnit _gimp_unit_cache_new (gchar *identifier,
gdouble factor,
gint digits,
gchar *symbol,
gchar *abbreviation,
gchar *singular,
gchar *plural);
G_GNUC_INTERNAL gboolean _gimp_unit_cache_get_deletion_flag (GimpUnit unit);
G_GNUC_INTERNAL void _gimp_unit_cache_set_deletion_flag (GimpUnit unit,
gboolean deletion_flag);
G_GNUC_INTERNAL gdouble _gimp_unit_cache_get_factor (GimpUnit unit);
G_GNUC_INTERNAL gint _gimp_unit_cache_get_digits (GimpUnit unit);
G_GNUC_INTERNAL const gchar * _gimp_unit_cache_get_identifier (GimpUnit unit);
G_GNUC_INTERNAL const gchar * _gimp_unit_cache_get_symbol (GimpUnit unit);
G_GNUC_INTERNAL const gchar * _gimp_unit_cache_get_abbreviation (GimpUnit unit);
G_GNUC_INTERNAL const gchar * _gimp_unit_cache_get_singular (GimpUnit unit);
G_GNUC_INTERNAL const gchar * _gimp_unit_cache_get_plural (GimpUnit unit);
G_END_DECLS

View File

@ -20,7 +20,8 @@ G_BEGIN_DECLS
* _gimp_reloc_init_lib().
*/
typedef enum {
typedef enum
{
/** Cannot allocate memory. */
GIMP_RELOC_INIT_ERROR_NOMEM,
/** Unable to open /proc/self/maps; see errno for details. */
@ -34,19 +35,19 @@ typedef enum {
} GimpBinrelocInitError;
gboolean _gimp_reloc_init (GError **error) G_GNUC_INTERNAL;
gboolean _gimp_reloc_init_lib (GError **error) G_GNUC_INTERNAL;
G_GNUC_INTERNAL gboolean _gimp_reloc_init (GError **error);
G_GNUC_INTERNAL gboolean _gimp_reloc_init_lib (GError **error);
gchar * _gimp_reloc_find_exe (const gchar *default_exe) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_exe_dir (const gchar *default_dir) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_prefix (const gchar *default_prefix) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_bin_dir (const gchar *default_bin_dir) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_data_dir (const gchar *default_data_dir) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_plugin_dir (const gchar *default_plugin_dir) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_locale_dir (const gchar *default_locale_dir) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_lib_dir (const gchar *default_lib_dir) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_libexec_dir (const gchar *default_libexec_dir) G_GNUC_INTERNAL;
gchar * _gimp_reloc_find_etc_dir (const gchar *default_etc_dir) G_GNUC_INTERNAL;
G_GNUC_INTERNAL gchar * _gimp_reloc_find_exe (const gchar *default_exe);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_exe_dir (const gchar *default_dir);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_prefix (const gchar *default_prefix);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_bin_dir (const gchar *default_bin_dir);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_data_dir (const gchar *default_data_dir);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_plugin_dir (const gchar *default_plugin_dir);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_locale_dir (const gchar *default_locale_dir);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_lib_dir (const gchar *default_lib_dir);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_libexec_dir (const gchar *default_libexec_dir);
G_GNUC_INTERNAL gchar * _gimp_reloc_find_etc_dir (const gchar *default_etc_dir);
G_END_DECLS

View File

@ -81,54 +81,57 @@ gboolean gimp_wire_write_msg (GIOChannel *channel,
void gimp_wire_destroy (GimpWireMessage *msg);
gboolean _gimp_wire_read_int32 (GIOChannel *channel,
guint32 *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_read_int16 (GIOChannel *channel,
guint16 *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_read_int8 (GIOChannel *channel,
guint8 *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_read_double (GIOChannel *channel,
gdouble *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_read_string (GIOChannel *channel,
gchar **data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_read_color (GIOChannel *channel,
GimpRGB *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_write_int32 (GIOChannel *channel,
const guint32 *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_write_int16 (GIOChannel *channel,
const guint16 *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_write_int8 (GIOChannel *channel,
const guint8 *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_write_double (GIOChannel *channel,
const gdouble *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_write_string (GIOChannel *channel,
gchar **data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
gboolean _gimp_wire_write_color (GIOChannel *channel,
const GimpRGB *data,
gint count,
gpointer user_data) G_GNUC_INTERNAL;
/* for internal use in libgimpbase */
G_GNUC_INTERNAL gboolean _gimp_wire_read_int32 (GIOChannel *channel,
guint32 *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_read_int16 (GIOChannel *channel,
guint16 *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_read_int8 (GIOChannel *channel,
guint8 *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_read_double (GIOChannel *channel,
gdouble *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_read_string (GIOChannel *channel,
gchar **data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_read_color (GIOChannel *channel,
GimpRGB *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_write_int32 (GIOChannel *channel,
const guint32 *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_write_int16 (GIOChannel *channel,
const guint16 *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_write_int8 (GIOChannel *channel,
const guint8 *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_write_double (GIOChannel *channel,
const gdouble *data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_write_string (GIOChannel *channel,
gchar **data,
gint count,
gpointer user_data);
G_GNUC_INTERNAL gboolean _gimp_wire_write_color (GIOChannel *channel,
const GimpRGB *data,
gint count,
gpointer user_data);
G_END_DECLS

View File

@ -58,9 +58,9 @@ void gimp_thumbs_delete_for_uri_local (const gchar *uri);
/* for internal use only */
void _gimp_thumbs_delete_others (const gchar *uri,
GimpThumbSize size) G_GNUC_INTERNAL;
gchar * _gimp_thumb_filename_from_uri (const gchar *uri) G_GNUC_INTERNAL;
G_GNUC_INTERNAL void _gimp_thumbs_delete_others (const gchar *uri,
GimpThumbSize size);
G_GNUC_INTERNAL gchar * _gimp_thumb_filename_from_uri (const gchar *uri);
G_END_DECLS

View File

@ -90,14 +90,14 @@ void gimp_color_area_set_draw_border (GimpColorArea *area,
gboolean draw_border);
/* only for private use in libgimpwidgets */
void _gimp_color_area_render_buf (GtkWidget *widget,
gboolean insensitive,
GimpColorAreaType type,
guchar *buf,
guint width,
guint height,
guint rowstride,
GimpRGB *color) G_GNUC_INTERNAL;
G_GNUC_INTERNAL void _gimp_color_area_render_buf (GtkWidget *widget,
gboolean insensitive,
GimpColorAreaType type,
guchar *buf,
guint width,
guint height,
guint rowstride,
GimpRGB *color);
G_END_DECLS

View File

@ -28,34 +28,36 @@ G_BEGIN_DECLS
/* For information look into the C source or the html documentation */
void _gimp_help_init (void) G_GNUC_INTERNAL;
void gimp_help_enable_tooltips (void);
void gimp_help_disable_tooltips (void);
void gimp_help_enable_tooltips (void);
void gimp_help_disable_tooltips (void);
/* the standard gimp help function
*/
void gimp_standard_help_func (const gchar *help_id,
gpointer help_data);
void gimp_standard_help_func (const gchar *help_id,
gpointer help_data);
/* connect the help callback of a window */
void gimp_help_connect (GtkWidget *widget,
GimpHelpFunc help_func,
const gchar *help_id,
gpointer help_data);
void gimp_help_connect (GtkWidget *widget,
GimpHelpFunc help_func,
const gchar *help_id,
gpointer help_data);
/* set help data for non-window widgets */
void gimp_help_set_help_data (GtkWidget *widget,
const gchar *tooltip,
const gchar *help_id);
void gimp_help_set_help_data (GtkWidget *widget,
const gchar *tooltip,
const gchar *help_id);
/* activate the context help inspector */
void gimp_context_help (GtkWidget *widget);
void gimp_context_help (GtkWidget *widget);
#define GIMP_HELP_ID (gimp_help_id_quark ())
GQuark gimp_help_id_quark (void) G_GNUC_CONST;
GQuark gimp_help_id_quark (void) G_GNUC_CONST;
/* only for private use in libgimpwidgets */
G_GNUC_INTERNAL void _gimp_help_init (void);
G_END_DECLS