diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-12-20 22:12:28 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-12-20 22:12:28 (GMT) |
commit | cffbe4839da452af215f05dfb7cc6c9304c1285e (patch) | |
tree | d2ea78b67592e868ed94ab189722670379cd2b67 /src/gtkext/graph | |
parent | 0f58e137ff493ab38d2a7e6e2d5e5bc85951be3d (diff) |
Kept the current location when switching views.
Diffstat (limited to 'src/gtkext/graph')
-rw-r--r-- | src/gtkext/graph/cluster.c | 25 | ||||
-rw-r--r-- | src/gtkext/graph/cluster.h | 3 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/gtkext/graph/cluster.c b/src/gtkext/graph/cluster.c index 9bbfb34..17af9ce 100644 --- a/src/gtkext/graph/cluster.c +++ b/src/gtkext/graph/cluster.c @@ -790,6 +790,31 @@ void g_graph_cluster_compute_needed_alloc(const GGraphCluster *cluster, GtkAlloc /****************************************************************************** * * +* Paramètres : cluster = encapsulation à consulter. * +* * +* Description : Fournit le composant graphique principal du groupe. * +* * +* Retour : Composant graphique principal utilisé. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GtkWidget *g_graph_cluster_get_widget(GGraphCluster *cluster) +{ + GtkWidget *result; + + result = cluster->display; + + g_object_ref(G_OBJECT(result)); + + return result; + +} + + +/****************************************************************************** +* * * Paramètres : cluster = encapsulation à traiter. * * display = support de destination finale. * * * diff --git a/src/gtkext/graph/cluster.h b/src/gtkext/graph/cluster.h index fbf2d10..11ce66e 100644 --- a/src/gtkext/graph/cluster.h +++ b/src/gtkext/graph/cluster.h @@ -56,6 +56,9 @@ GGraphCluster *g_graph_cluster_new(GCodeBlock *, segcnt_list *, GLoadedBinary *) /* Détermine l'emplacement requis d'un ensemble de blocs. */ void g_graph_cluster_compute_needed_alloc(const GGraphCluster *, GtkAllocation *); +/* Fournit le composant graphique principal du groupe. */ +GtkWidget *g_graph_cluster_get_widget(GGraphCluster *); + /* Dispose chaque noeud sur la surface de destination donnée. */ void g_graph_cluster_place(GGraphCluster *, GtkGraphDisplay *); |