From 2c6e4f3f3f15d1568e9dae407e32a217d8f7ab19 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 5 May 2015 16:54:13 +0000 Subject: 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 --- ChangeLog | 6 ++++++ src/gtkext/gtkgraphview.c | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index fab8a34..7fa5720 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ 15-05-05 Cyrille Bagard * src/gtkext/gtkgraphview.c: + Do not forget to allocate size for the view as soon as the size of its + support change. Remove old useless 'vmpa_t' fields. + +15-05-05 Cyrille Bagard + + * src/gtkext/gtkgraphview.c: * src/gtkext/gtkgraphview.h: Fix some warnings during the compilation. 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])); -- cgit v0.11.2-87-g4458