mirror of https://github.com/GNOME/gimp.git
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:
parent
936b98a6d8
commit
12f28a4916
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue