diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-11-10 18:00:23 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-11-10 18:00:23 (GMT) |
commit | 85be5ab140bb90ca69e20323eb49999d8520af13 (patch) | |
tree | 0cda930b0d37f48f620efbce0e04f3f2de416bd6 /src/gtkext/gtkviewpanel.c | |
parent | ba5c517970f725903ae8b196b28f1a2eb7705536 (diff) |
Provided a nice way to get a small preview of the current graph.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@280 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkviewpanel.c')
-rw-r--r-- | src/gtkext/gtkviewpanel.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/gtkext/gtkviewpanel.c b/src/gtkext/gtkviewpanel.c index 0ab4f72..3c9ef6b 100644 --- a/src/gtkext/gtkviewpanel.c +++ b/src/gtkext/gtkviewpanel.c @@ -500,7 +500,7 @@ bool gtk_view_panel_contain_address(const GtkViewPanel *panel, vmpa_t addr) /****************************************************************************** * * * Paramètres : panel = composant GTK à manipuler. * -* addr = adresse à présenter à l'écran. * +* addr = adresse à présenter à l'écran. * * * * Description : S'assure qu'une adresse donnée est visible à l'écran. * * * @@ -538,3 +538,24 @@ void gtk_view_panel_scroll_to_address(GtkViewPanel *panel, vmpa_t addr) } } + + +/****************************************************************************** +* * +* Paramètres : panel = composant GTK à manipuler. * +* cairo = assistant pour la création de rendus. * +* * +* Description : Place en cache un rendu destiné à l'aperçu graphique rapide. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void gtk_view_panel_cache_glance(GtkViewPanel *panel, cairo_t *cairo) +{ + if (panel->cache_glance != NULL) + panel->cache_glance(panel, cairo); + +} |