removed os2 code
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Wed Nov 17 17:29:35 1999 ape@spacetec.no (Asbjorn Pettersen)
|
||||||
|
|
||||||
|
* modules/colorsel_triangle.c (module_init): Removed most of the
|
||||||
|
OS/2 code. Include modregister.h.
|
||||||
|
|
||||||
Wed Nov 17 15:37:06 MET 1999 Sven Neumann <sven@gimp.org>
|
Wed Nov 17 15:37:06 MET 1999 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/color_balance.c
|
* app/color_balance.c
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include <libgimp/color_selector.h>
|
#include <libgimp/color_selector.h>
|
||||||
#include <libgimp/gimpmodule.h>
|
#include <libgimp/gimpmodule.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include "modregister.h"
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
#define M_PI 3.14159265358979323846
|
#define M_PI 3.14159265358979323846
|
||||||
@ -133,33 +134,6 @@ static void update_previews (ColorSelectP, gint);
|
|||||||
static void color_select_update_hsv_values (ColorSelectP);
|
static void color_select_update_hsv_values (ColorSelectP);
|
||||||
|
|
||||||
|
|
||||||
#ifdef __EMX__
|
|
||||||
struct main_funcs_struc {
|
|
||||||
gchar *name;
|
|
||||||
void (*func)();
|
|
||||||
};
|
|
||||||
struct main_funcs_struc *gimp_main_funcs = NULL;
|
|
||||||
|
|
||||||
static gpointer
|
|
||||||
get_main_func (gchar *name)
|
|
||||||
{
|
|
||||||
struct main_funcs_struc *x;
|
|
||||||
if (gimp_main_funcs == NULL)
|
|
||||||
return NULL;
|
|
||||||
for (x = gimp_main_funcs; x->name; x++)
|
|
||||||
{
|
|
||||||
if (!strcmp(x->name, name))
|
|
||||||
return (gpointer) x->func;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
typedef GimpColorSelectorID (*color_reg_func)(const char *,
|
|
||||||
GimpColorSelectorMethods *);
|
|
||||||
typedef gboolean (*color_unreg_func) (GimpColorSelectorID,
|
|
||||||
void (*)(void *),
|
|
||||||
void *);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************/
|
/*************************************************************/
|
||||||
|
|
||||||
/* globaly exported init function */
|
/* globaly exported init function */
|
||||||
@ -170,13 +144,10 @@ module_init (GimpModuleInfo **inforet)
|
|||||||
|
|
||||||
#ifndef __EMX__
|
#ifndef __EMX__
|
||||||
id = gimp_color_selector_register ("Triangle", "triangle.html", &methods);
|
id = gimp_color_selector_register ("Triangle", "triangle.html", &methods);
|
||||||
|
|
||||||
if (id)
|
|
||||||
#else
|
#else
|
||||||
color_reg_func reg_func;
|
id = mod_color_selector_register ("Triangle", "triangle.html", &methods);
|
||||||
reg_func = (color_reg_func) get_main_func("gimp_color_selector_register");
|
|
||||||
if (reg_func && (id = (*reg_func) ("Triangle", &methods)))
|
|
||||||
#endif
|
#endif
|
||||||
|
if (id)
|
||||||
{
|
{
|
||||||
info.shutdown_data = id;
|
info.shutdown_data = id;
|
||||||
*inforet = &info;
|
*inforet = &info;
|
||||||
@ -197,11 +168,7 @@ module_unload (void *shutdown_data,
|
|||||||
#ifndef __EMX__
|
#ifndef __EMX__
|
||||||
gimp_color_selector_unregister (shutdown_data, completed_cb, completed_data);
|
gimp_color_selector_unregister (shutdown_data, completed_cb, completed_data);
|
||||||
#else
|
#else
|
||||||
color_unreg_func unreg_func;
|
mod_color_selector_unregister (shutdown_data, completed_cb, completed_data);
|
||||||
unreg_func = (color_unreg_func) get_main_func("gimp_color_selector_unregister"
|
|
||||||
);
|
|
||||||
if (unreg_func)
|
|
||||||
(*unreg_func) (shutdown_data, completed_cb, completed_data);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user