add OS2 functions
This commit is contained in:
@ -107,4 +107,24 @@ mod_color_display_unregister (const char *name)
|
||||
return (status);
|
||||
}
|
||||
|
||||
void mod_dialog_register (GtkWidget *dialog)
|
||||
{
|
||||
dialog_reg_func reg_func;
|
||||
|
||||
reg_func = (dialog_reg_func) get_main_func("dialog_register");
|
||||
if (!reg_func)
|
||||
return;
|
||||
(*reg_func) (dialog);
|
||||
}
|
||||
|
||||
void mod_dialog_unregister (GtkWidget *dialog)
|
||||
{
|
||||
dialog_reg_func reg_func;
|
||||
|
||||
reg_func = (dialog_reg_func) get_main_func("dialog_unregister");
|
||||
if (!reg_func)
|
||||
return;
|
||||
(*reg_func) (dialog);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -40,6 +40,12 @@ typedef gboolean (*color_unreg_func) (GimpColorSelectorID,
|
||||
void *);
|
||||
typedef G_MODULE_EXPORT gboolean (*display_unreg_func) (const char *name);
|
||||
|
||||
typedef void (*dialog_reg_func) (GtkWidget *dialog);
|
||||
|
||||
void mod_dialog_register (GtkWidget *dialog);
|
||||
void mod_dialog_unregister (GtkWidget *dialog);
|
||||
#define dialog_register mod_dialog_register
|
||||
#define dialog_unregister mod_dialog_unregister
|
||||
|
||||
GimpColorSelectorID
|
||||
mod_color_selector_register (const char *name,
|
||||
|
@ -107,4 +107,24 @@ mod_color_display_unregister (const char *name)
|
||||
return (status);
|
||||
}
|
||||
|
||||
void mod_dialog_register (GtkWidget *dialog)
|
||||
{
|
||||
dialog_reg_func reg_func;
|
||||
|
||||
reg_func = (dialog_reg_func) get_main_func("dialog_register");
|
||||
if (!reg_func)
|
||||
return;
|
||||
(*reg_func) (dialog);
|
||||
}
|
||||
|
||||
void mod_dialog_unregister (GtkWidget *dialog)
|
||||
{
|
||||
dialog_reg_func reg_func;
|
||||
|
||||
reg_func = (dialog_reg_func) get_main_func("dialog_unregister");
|
||||
if (!reg_func)
|
||||
return;
|
||||
(*reg_func) (dialog);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -40,6 +40,12 @@ typedef gboolean (*color_unreg_func) (GimpColorSelectorID,
|
||||
void *);
|
||||
typedef G_MODULE_EXPORT gboolean (*display_unreg_func) (const char *name);
|
||||
|
||||
typedef void (*dialog_reg_func) (GtkWidget *dialog);
|
||||
|
||||
void mod_dialog_register (GtkWidget *dialog);
|
||||
void mod_dialog_unregister (GtkWidget *dialog);
|
||||
#define dialog_register mod_dialog_register
|
||||
#define dialog_unregister mod_dialog_unregister
|
||||
|
||||
GimpColorSelectorID
|
||||
mod_color_selector_register (const char *name,
|
||||
|
Reference in New Issue
Block a user