summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/gtkext/gtkgraphview.c7
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 <nocbos@gmail.com>
* 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 <nocbos@gmail.com>
+
+ * 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]));