summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkviewpanel.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-04-03 13:10:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-04-03 13:10:42 (GMT)
commit6cfa350c21c1e54cf9c597d92a9ea3d1aab01d78 (patch)
treef961a21eb14ccdc56d24129ff87012c4647579da /src/gtkext/gtkviewpanel.c
parent3293a5b3b13271ea1499718d310c1bd0284762a3 (diff)
Tried to show basic blocks in the graphic view again.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@499 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkviewpanel.c')
-rw-r--r--src/gtkext/gtkviewpanel.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gtkext/gtkviewpanel.c b/src/gtkext/gtkviewpanel.c
index d434f1e..3c8febd 100644
--- a/src/gtkext/gtkviewpanel.c
+++ b/src/gtkext/gtkviewpanel.c
@@ -320,6 +320,11 @@ static void gtk_view_panel_size_allocate(GtkWidget *widget, GtkAllocation *alloc
GTK_WIDGET_CLASS(gtk_view_panel_parent_class)->size_allocate(widget, allocation);
+
+ printf("[%s / %p] __SIZE :: (%d ; %d)\n", G_OBJECT_TYPE_NAME(widget), widget,
+ allocation->width, allocation->height);
+
+
panel = GTK_VIEW_PANEL(widget);
gtk_view_panel_update_adjustment(panel, GTK_ORIENTATION_HORIZONTAL);
@@ -347,6 +352,8 @@ static gboolean gtk_view_panel_draw(GtkWidget *widget, cairo_t *cr)
GtkRequisition req; /* Taille allouée à l'élément */
GtkStyleContext *context; /* Contexte du thème actuel */
+ GTK_WIDGET_CLASS(gtk_view_panel_parent_class)->draw(widget, cr);
+
panel = GTK_VIEW_PANEL(widget);
if (panel->show_border)
@@ -776,11 +783,8 @@ void gtk_view_panel_scroll_to_address(GtkViewPanel *panel, const vmpa2t *addr, S
gdouble page_size; /* Taille de l'affichage */
double value; /* Valeur courante */
- /*
- if (panel->define != NULL)
- panel->define(panel, addr);
- */
-
+ if (GTK_VIEW_PANEL_GET_CLASS(panel)->define != NULL)
+ GTK_VIEW_PANEL_GET_CLASS(panel)->define(panel, addr);
if (GTK_VIEW_PANEL_GET_CLASS(panel)->get_coordinates(panel, addr, &x, &y, tweak))
{