30
30
#include "core/gimp.h"
31
31
#include "core/gimpcontext.h"
32
#include "core/gimpparamspecs.h"
33
34
#include "text/gimpfont.h"
35
#include "pdb/procedural_db.h"
36
#include "pdb/gimppdb.h"
37
38
#include "gimpcontainerbox.h"
38
39
#include "gimpfontselect.h"
39
40
#include "gimpfontview.h"
42
static void gimp_font_select_class_init (GimpFontSelectClass *klass);
44
static GObject * gimp_font_select_constructor (GType type,
46
GObjectConstructParam *params);
48
static Argument * gimp_font_select_run_callback (GimpPdbDialog *dialog,
54
static GimpPdbDialogClass *parent_class = NULL;
58
gimp_font_select_get_type (void)
60
static GType dialog_type = 0;
64
static const GTypeInfo dialog_info =
66
sizeof (GimpFontSelectClass),
68
(GBaseFinalizeFunc) NULL,
69
(GClassInitFunc) gimp_font_select_class_init,
70
NULL, /* class_finalize */
71
NULL, /* class_data */
72
sizeof (GimpFontSelect),
74
NULL /* instance_init */
77
dialog_type = g_type_register_static (GIMP_TYPE_PDB_DIALOG,
43
static GObject * gimp_font_select_constructor (GType type,
45
GObjectConstructParam *params);
47
static GValueArray * gimp_font_select_run_callback (GimpPdbDialog *dialog,
52
G_DEFINE_TYPE (GimpFontSelect, gimp_font_select, GIMP_TYPE_PDB_DIALOG)
54
#define parent_class gimp_font_select_parent_class
86
58
gimp_font_select_class_init (GimpFontSelectClass *klass)
88
60
GObjectClass *object_class = G_OBJECT_CLASS (klass);
89
61
GimpPdbDialogClass *pdb_class = GIMP_PDB_DIALOG_CLASS (klass);
91
parent_class = g_type_class_peek_parent (klass);
93
63
object_class->constructor = gimp_font_select_constructor;
95
65
pdb_class->run_callback = gimp_font_select_run_callback;
69
gimp_font_select_init (GimpFontSelect *select)
99
74
gimp_font_select_constructor (GType type,
128
103
gimp_font_select_run_callback (GimpPdbDialog *dialog,
129
104
GimpObject *object,
133
return procedural_db_run_proc (dialog->caller_context->gimp,
134
dialog->caller_context,
136
dialog->callback_name,
138
GIMP_PDB_STRING, object->name,
139
GIMP_PDB_INT32, closing,
107
return gimp_pdb_execute_procedure_by_name (dialog->pdb,
108
dialog->caller_context,
110
dialog->callback_name,
111
G_TYPE_STRING, object->name,
112
GIMP_TYPE_INT32, closing,