added some g_return_if_fail().

2004-01-31  Michael Natterer  <mitch@gimp.org>

	* app/gui/dialogs.c: added some g_return_if_fail().
This commit is contained in:
Michael Natterer 2004-01-31 19:00:26 +00:00 committed by Michael Natterer
parent 936b98a6d8
commit 12f28a4916
3 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-01-31 Michael Natterer <mitch@gimp.org>
* app/gui/dialogs.c: added some g_return_if_fail().
2004-01-31 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpdock.c (gimp_dock_constructor): g_assert() that

View File

@ -197,6 +197,8 @@ dialogs_init (Gimp *gimp)
{
gint i;
g_return_if_fail (GIMP_IS_GIMP (gimp));
global_dialog_factory = gimp_dialog_factory_new ("toplevel",
gimp_get_user_context (gimp),
NULL,
@ -236,6 +238,8 @@ dialogs_init (Gimp *gimp)
void
dialogs_exit (Gimp *gimp)
{
g_return_if_fail (GIMP_IS_GIMP (gimp));
if (global_dialog_factory)
{
g_object_unref (global_dialog_factory);

View File

@ -197,6 +197,8 @@ dialogs_init (Gimp *gimp)
{
gint i;
g_return_if_fail (GIMP_IS_GIMP (gimp));
global_dialog_factory = gimp_dialog_factory_new ("toplevel",
gimp_get_user_context (gimp),
NULL,
@ -236,6 +238,8 @@ dialogs_init (Gimp *gimp)
void
dialogs_exit (Gimp *gimp)
{
g_return_if_fail (GIMP_IS_GIMP (gimp));
if (global_dialog_factory)
{
g_object_unref (global_dialog_factory);