From 30f638516ed11331002781266b04d0d221e837a2 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Sat, 29 Oct 2011 19:37:58 +0200 Subject: [PATCH] app: add gimp_get_paint_info_iter(), I need it later for PDB context fixing --- app/core/gimp.c | 8 ++++++++ app/core/gimp.h | 1 + 2 files changed, 9 insertions(+) diff --git a/app/core/gimp.c b/app/core/gimp.c index f703381972..68763c161f 100644 --- a/app/core/gimp.c +++ b/app/core/gimp.c @@ -1075,6 +1075,14 @@ gimp_get_image_windows (Gimp *gimp) return g_list_copy (gimp->image_windows); } +GList * +gimp_get_paint_info_iter (Gimp *gimp) +{ + g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL); + + return GIMP_LIST (gimp->paint_info_list)->list; +} + GList * gimp_get_tool_info_iter (Gimp *gimp) { diff --git a/app/core/gimp.h b/app/core/gimp.h index 86c160c7cb..6bf7c06108 100644 --- a/app/core/gimp.h +++ b/app/core/gimp.h @@ -171,6 +171,7 @@ void gimp_exit (Gimp *gimp, GList * gimp_get_image_iter (Gimp *gimp); GList * gimp_get_display_iter (Gimp *gimp); GList * gimp_get_image_windows (Gimp *gimp); +GList * gimp_get_paint_info_iter (Gimp *gimp); GList * gimp_get_tool_info_iter (Gimp *gimp); void gimp_set_global_buffer (Gimp *gimp,