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.
This commit is contained in:
Michael Natterer 2010-02-13 15:04:32 +01:00
parent 56fabf760e
commit f9cb5fbc10
2 changed files with 6 additions and 6 deletions

View File

@ -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))

View File

@ -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);