summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-05-05 16:54:13 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-05-05 16:54:13 (GMT)
commit2c6e4f3f3f15d1568e9dae407e32a217d8f7ab19 (patch)
tree629e7b0c7b11ba10f5e2b0394fc8efe968e4e3af /src/gtkext
parentad593ed12e5851d619cf1d921f0800378fb54d04 (diff)
Done not forget to allocate size for the view as soon as the size of its support change.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@529 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkgraphview.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gtkext/gtkgraphview.c b/src/gtkext/gtkgraphview.c
index ebff35c..d5b123e 100644
--- a/src/gtkext/gtkgraphview.c
+++ b/src/gtkext/gtkgraphview.c
@@ -43,8 +43,6 @@ struct _GtkGraphView
GtkWidget *support; /* Support des vues en bloc */
GBinRoutine *routine; /* Routine en cours d'affichage*/
- vmpa_t start; /* Début de la portion vue */ /* FIXME : à garder ? */
- vmpa_t end; /* Fin de la portion affichée */ /* FIXME : à garder ? */
segcnt_list *highlighted; /* Segments mis en évidence */
GtkBufferView **children; /* Liste des sous-blocs */
@@ -365,6 +363,8 @@ static void gtk_graph_view_define_main_address(GtkGraphView *view, const vmpa2t
}
gtk_graph_view_compute_requested_size(view, &width, &height);
+
+ gtk_widget_size_allocate(view, (GtkAllocation []){ { 0, 0, width, height } });
gtk_widget_size_allocate(view->support, (GtkAllocation []){ { 0, 0, width, height } });
change_editor_items_current_view_content(GTK_VIEW_PANEL(view));
@@ -517,9 +517,6 @@ static void gtk_graph_view_reset(GtkGraphView *view)
{
size_t i; /* Boucle de parcours */
- view->start = VMPA_MAX;
- view->end = VMPA_MAX;
-
/*
for (i = 0; i < view->links_count; i++)
gtk_object_destroy(GTK_OBJECT(view->links[i]));