Well, sometimes the most obvious solution is not the first one...

2002-04-12  Michael Natterer  <mitch@gimp.org>

	Well, sometimes the most obvious solution is not the first one...

	* app/gimphelp.[ch]: removed _gimp_standard_help_func().

	* app/libgimp_glue.c (gimp_standard_help_func): call gimp_help()
	directly.
This commit is contained in:
Michael Natterer 2002-04-12 18:26:43 +00:00 committed by Michael Natterer
parent b46ab216e6
commit adad0f47e5
6 changed files with 24 additions and 39 deletions

View File

@ -1,3 +1,12 @@
2002-04-12 Michael Natterer <mitch@gimp.org>
Well, sometimes the most obvious solution is not the first one...
* app/gimphelp.[ch]: removed _gimp_standard_help_func().
* app/libgimp_glue.c (gimp_standard_help_func): call gimp_help()
directly.
2002-04-12 Michael Natterer <mitch@gimp.org>
* app/gimphelp.[ch]: removed usage of "the_gimp" by passing around

View File

@ -76,17 +76,6 @@ static void gimp_help_netscape (Gimp *gimp,
/* public functions */
/* The standard help function */
void
_gimp_standard_help_func (Gimp *gimp,
const gchar *help_data)
{
g_return_if_fail (GIMP_IS_GIMP (gimp));
gimp_help (gimp, NULL, help_data);
}
/* the main help function */
void
gimp_help (Gimp *gimp,
const gchar *help_path,

View File

@ -30,14 +30,13 @@ enum
};
/* The standard help function */
void _gimp_standard_help_func (Gimp *gimp,
const gchar *help_data);
/* the main help function */
void gimp_help (Gimp *gimp,
const gchar *help_path,
const gchar *help_data);
/* the main help function
*
* there should be no need to use it in the common case
*/
void gimp_help (Gimp *gimp,
const gchar *help_path,
const gchar *help_data);
#endif /* __GIMP_HELP_H__ */

View File

@ -166,5 +166,5 @@ gimp_unit_get_plural (GimpUnit unit)
void
gimp_standard_help_func (const gchar *help_data)
{
_gimp_standard_help_func (the_gimp, help_data);
gimp_help (the_gimp, NULL, help_data);
}

View File

@ -76,17 +76,6 @@ static void gimp_help_netscape (Gimp *gimp,
/* public functions */
/* The standard help function */
void
_gimp_standard_help_func (Gimp *gimp,
const gchar *help_data)
{
g_return_if_fail (GIMP_IS_GIMP (gimp));
gimp_help (gimp, NULL, help_data);
}
/* the main help function */
void
gimp_help (Gimp *gimp,
const gchar *help_path,

View File

@ -30,14 +30,13 @@ enum
};
/* The standard help function */
void _gimp_standard_help_func (Gimp *gimp,
const gchar *help_data);
/* the main help function */
void gimp_help (Gimp *gimp,
const gchar *help_path,
const gchar *help_data);
/* the main help function
*
* there should be no need to use it in the common case
*/
void gimp_help (Gimp *gimp,
const gchar *help_path,
const gchar *help_data);
#endif /* __GIMP_HELP_H__ */