[gimp/gtk3-port: 220/233] app: use gimp_color_display_stack_get_filters() instead of stack->filters



commit 30a3166472908fffeab21d6479400b878e26e896
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 9 23:57:44 2015 +0200

    app: use gimp_color_display_stack_get_filters() instead of stack->filters

 app/display/gimpdisplayshell-filter.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-filter.c b/app/display/gimpdisplayshell-filter.c
index a9c8756..d076ab0 100644
--- a/app/display/gimpdisplayshell-filter.c
+++ b/app/display/gimpdisplayshell-filter.c
@@ -78,9 +78,12 @@ gimp_display_shell_has_filter (GimpDisplayShell *shell)
 
   if (shell->filter_stack)
     {
+      GList *filters;
       GList *iter;
 
-      for (iter = shell->filter_stack->filters; iter; iter = g_list_next (iter))
+      filters = gimp_color_display_stack_get_filters (shell->filter_stack);
+
+      for (iter = filters; iter; iter = g_list_next (iter))
         {
           if (gimp_color_display_get_enabled (GIMP_COLOR_DISPLAY (iter->data)))
             return TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]