Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
553e05ec
Commit
553e05ec
authored
Oct 29, 2011
by
Michael Natterer
😴
Browse files
app: add a function to get the paint options from GimpPDBContext
parent
b1108c0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/pdb/gimppdbcontext.c
View file @
553e05ec
...
...
@@ -383,3 +383,14 @@ gimp_pdb_context_new (Gimp *gimp,
return
GIMP_CONTEXT
(
context
);
}
GimpPaintOptions
*
gimp_pdb_context_get_paint_options
(
GimpPDBContext
*
context
,
const
gchar
*
name
)
{
g_return_val_if_fail
(
GIMP_IS_PDB_CONTEXT
(
context
),
NULL
);
g_return_val_if_fail
(
name
!=
NULL
,
NULL
);
return
(
GimpPaintOptions
*
)
gimp_container_get_child_by_name
(
context
->
paint_options_list
,
name
);
}
app/pdb/gimppdbcontext.h
View file @
553e05ec
...
...
@@ -62,11 +62,14 @@ struct _GimpPDBContextClass
};
GType
gimp_pdb_context_get_type
(
void
)
G_GNUC_CONST
;
GType
gimp_pdb_context_get_type
(
void
)
G_GNUC_CONST
;
GimpContext
*
gimp_pdb_context_new
(
Gimp
*
gimp
,
GimpContext
*
parent
,
gboolean
set_parent
);
GimpContext
*
gimp_pdb_context_new
(
Gimp
*
gimp
,
GimpContext
*
parent
,
gboolean
set_parent
);
GimpPaintOptions
*
gimp_pdb_context_get_paint_options
(
GimpPDBContext
*
context
,
const
gchar
*
name
);
#endif
/* __GIMP_PDB_CONTEXT_H__ */
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment