[gimp] Derive GimpDisplayShell from GimpImageWindow
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Derive GimpDisplayShell from GimpImageWindow
- Date: Tue, 29 Sep 2009 18:35:32 +0000 (UTC)
commit aad8fbad3e7ae9f506df09b275b7af5f67f6236c
Author: Michael Natterer <mitch gimp org>
Date: Wed Sep 23 12:32:36 2009 +0200
Derive GimpDisplayShell from GimpImageWindow
This is just a refactoring step, later the image window will have one
or many display shells.
app/display/gimpdisplayshell.c | 3 ++-
app/display/gimpdisplayshell.h | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index 37435a1..c96ac66 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -144,7 +144,8 @@ static const guint8 * gimp_display_shell_get_icc_profile
gsize *len);
-G_DEFINE_TYPE_WITH_CODE (GimpDisplayShell, gimp_display_shell, GIMP_TYPE_WINDOW,
+G_DEFINE_TYPE_WITH_CODE (GimpDisplayShell, gimp_display_shell,
+ GIMP_TYPE_IMAGE_WINDOW,
G_IMPLEMENT_INTERFACE (GIMP_TYPE_PROGRESS,
gimp_display_shell_progress_iface_init)
G_IMPLEMENT_INTERFACE (GIMP_TYPE_COLOR_MANAGED,
diff --git a/app/display/gimpdisplayshell.h b/app/display/gimpdisplayshell.h
index 47788ff..ea79076 100644
--- a/app/display/gimpdisplayshell.h
+++ b/app/display/gimpdisplayshell.h
@@ -19,7 +19,7 @@
#define __GIMP_DISPLAY_SHELL_H__
-#include "widgets/gimpwindow.h"
+#include "gimpimagewindow.h"
/* Apply to a float the same rounding mode used in the renderer */
@@ -60,7 +60,7 @@ typedef struct _GimpDisplayShellClass GimpDisplayShellClass;
struct _GimpDisplayShell
{
- GimpWindow parent_instance;
+ GimpImageWindow parent_instance;
/* --- cacheline 2 boundary (128 bytes) was 20 bytes ago --- */
@@ -217,7 +217,7 @@ struct _GimpDisplayShell
struct _GimpDisplayShellClass
{
- GimpWindowClass parent_class;
+ GimpImageWindowClass parent_class;
void (* scaled) (GimpDisplayShell *shell);
void (* scrolled) (GimpDisplayShell *shell);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]