[gimp] app: derive GimpContext from GimpViewable instead of GimpObject



commit f9cb5fbc10e17f0e34fb05db62848c09d916c251
Author: Michael Natterer <mitch gimp org>
Date:   Sat Feb 13 15:04:32 2010 +0100

    app: derive GimpContext from GimpViewable instead of GimpObject
    
    because the device info container wants to be displayed in a container
    view soon. Also we are about to get lists of tool presets and stuff,
    which are also contexts.

 app/core/gimpcontext.c |    4 ++--
 app/core/gimpcontext.h |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c
index 8218ea1..2027d24 100644
--- a/app/core/gimpcontext.c
+++ b/app/core/gimpcontext.c
@@ -2,7 +2,7 @@
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  *
  * gimpcontext.c
- * Copyright (C) 1999-2001 Michael Natterer
+ * Copyright (C) 1999-2010 Michael Natterer
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -338,7 +338,7 @@ static GType gimp_context_prop_types[] =
 };
 
 
-G_DEFINE_TYPE_WITH_CODE (GimpContext, gimp_context, GIMP_TYPE_OBJECT,
+G_DEFINE_TYPE_WITH_CODE (GimpContext, gimp_context, GIMP_TYPE_VIEWABLE,
                          G_IMPLEMENT_INTERFACE (GIMP_TYPE_CONFIG,
                                                 gimp_context_config_iface_init))
 
diff --git a/app/core/gimpcontext.h b/app/core/gimpcontext.h
index 31d5f40..7969b4a 100644
--- a/app/core/gimpcontext.h
+++ b/app/core/gimpcontext.h
@@ -2,7 +2,7 @@
  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
  *
  * gimpcontext.h
- * Copyright (C) 1999-2001 Michael Natterer
+ * Copyright (C) 1999-2010 Michael Natterer
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 #define __GIMP_CONTEXT_H__
 
 
-#include "gimpobject.h"
+#include "gimpviewable.h"
 
 
 #define GIMP_TYPE_CONTEXT            (gimp_context_get_type ())
@@ -46,7 +46,7 @@ typedef struct _GimpContextClass GimpContextClass;
  */
 struct _GimpContext
 {
-  GimpObject            parent_instance;
+  GimpViewable          parent_instance;
 
   Gimp                 *gimp;
 
@@ -100,7 +100,7 @@ struct _GimpContext
 
 struct _GimpContextClass
 {
-  GimpObjectClass  parent_class;
+  GimpViewableClass  parent_class;
 
   void (* image_changed)      (GimpContext          *context,
                                GimpImage            *image);



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