app: replace all g_assert() by the newly added gimp_assert()

which is just a #define to g_assert for now, but can now easily be
turned into something that does some nicer debugging using our new
stack trace infrastructure. This commit also reverts all constructed()
functions to use assert again.
This commit is contained in:
Michael Natterer
2018-02-11 22:23:10 +01:00
parent 6db5ba61b2
commit 539927ebfa
104 changed files with 213 additions and 211 deletions

View File

@ -378,8 +378,8 @@ gimp_image_window_constructed (GObject *object)
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GIMP (private->gimp));
g_assert (GIMP_IS_DIALOG_FACTORY (private->dialog_factory));
gimp_assert (GIMP_IS_GIMP (private->gimp));
gimp_assert (GIMP_IS_DIALOG_FACTORY (private->dialog_factory));
menu_factory = gimp_dialog_factory_get_menu_factory (private->dialog_factory);
@ -1904,7 +1904,7 @@ gimp_image_window_update_ui_manager_idle (GimpImageWindow *window)
{
GimpImageWindowPrivate *private = GIMP_IMAGE_WINDOW_GET_PRIVATE (window);
g_assert (private->active_shell != NULL);
gimp_assert (private->active_shell != NULL);
gimp_ui_manager_update (private->menubar_manager,
private->active_shell->display);