diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-11 08:32:15 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-11 08:32:15 +0800 |
commit | 0a908b7fe481dd3bf216021fd8e04489f5f2aa66 (patch) | |
tree | cd22b484c729a21684ef46b6c99483847c43dae2 /e-util/e-canvas.h | |
parent | 8c65f8861bd16321eeafac1d827d1fb4a557247c (diff) | |
download | gsoc2013-evolution-0a908b7fe481dd3bf216021fd8e04489f5f2aa66.tar gsoc2013-evolution-0a908b7fe481dd3bf216021fd8e04489f5f2aa66.tar.gz gsoc2013-evolution-0a908b7fe481dd3bf216021fd8e04489f5f2aa66.tar.bz2 gsoc2013-evolution-0a908b7fe481dd3bf216021fd8e04489f5f2aa66.tar.lz gsoc2013-evolution-0a908b7fe481dd3bf216021fd8e04489f5f2aa66.tar.xz gsoc2013-evolution-0a908b7fe481dd3bf216021fd8e04489f5f2aa66.tar.zst gsoc2013-evolution-0a908b7fe481dd3bf216021fd8e04489f5f2aa66.zip |
Designed a new system for doing hierarchical displays in the canvas. Adds
2000-03-10 Christopher James Lahey <clahey@helixcode.com>
* e-util/e-canvas.c, e-util/e-canvas.h: Designed a new system for
doing hierarchical displays in the canvas. Adds an extra idle
loop to the canvas system.
* widgets/e-minicard/e-minicard.c,
widgets/e-minicard/e-minicard-label.c,
widgets/e-minicard/e-minicard-label.h,
widgets/e-minicard/e-reflow.c, widgets/e-minicard/test-reflow.c,
widgets/e-text/e-text.c, widgets/e-text/e-text.h: Adapted to use
the new e-canvas reflow system.
svn path=/trunk/; revision=2096
Diffstat (limited to 'e-util/e-canvas.h')
-rw-r--r-- | e-util/e-canvas.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/e-util/e-canvas.h b/e-util/e-canvas.h index 0ece5ae3b4..e70957b6d7 100644 --- a/e-util/e-canvas.h +++ b/e-util/e-canvas.h @@ -38,6 +38,8 @@ extern "C" { #define E_IS_CANVAS(obj) (GTK_CHECK_TYPE ((obj), E_CANVAS_TYPE)) #define E_IS_CANVAS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), E_CANVAS_TYPE)) +typedef void (*ECanvasItemReflowFunc) (GnomeCanvasItem *item, + gint flags); typedef struct _ECanvas ECanvas; typedef struct _ECanvasClass ECanvasClass; @@ -46,12 +48,13 @@ struct _ECanvas { GnomeCanvas parent; - /* item specific fields */ + int idle_id; }; struct _ECanvasClass { GnomeCanvasClass parent_class; + void (* reflow) (ECanvas *canvas); }; @@ -63,6 +66,10 @@ GtkWidget *e_canvas_new (void); */ void e_canvas_item_grab_focus (GnomeCanvasItem *item); +void e_canvas_item_request_reflow (GnomeCanvasItem *item); +void e_canvas_item_request_parent_reflow (GnomeCanvasItem *item); +void e_canvas_item_set_reflow_callback (GnomeCanvasItem *item, ECanvasItemReflowFunc func); + #ifdef __cplusplus } #endif /* __cplusplus */ |