[anjuta] debug-manager: Fix memory view window



commit a09ce61135885910508b9c342e699659dc2b1033
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Sat Aug 27 19:27:45 2011 +0200

    debug-manager: Fix memory view window
    
    Restore the scrollbar which has been broken during the switch to Gtk+3.
    Fix a bug limiting the memory at 0x80000000

 plugins/debug-manager/data_view.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/debug-manager/data_view.c b/plugins/debug-manager/data_view.c
index 4260b8a..7152cb1 100644
--- a/plugins/debug-manager/data_view.c
+++ b/plugins/debug-manager/data_view.c
@@ -369,7 +369,7 @@ static void
 dma_data_view_value_changed (GtkAdjustment *adj,
                              DmaDataView   *view)
 {
-	gboolean value;
+	gdouble value;
 
 	value = gtk_adjustment_get_value (adj);
 	view->start = ((gulong) value) - (((gulong) value) % view->bytes_by_line);
@@ -449,6 +449,8 @@ dma_data_view_size_allocate (GtkWidget *widget,
 	guint border_width;
 	gboolean need_fill = FALSE;
 	
+	gtk_widget_set_allocation (widget, allocation);
+	
  	gtk_widget_get_child_requisition (view->range, &range_requisition);
 	border_width = gtk_container_get_border_width (GTK_CONTAINER (view));
 	style = gtk_widget_get_style (widget);
@@ -877,6 +879,8 @@ static void
 dma_data_view_instance_init (DmaDataView *view)
 {
 	view->buffer = NULL;
+
+	gtk_widget_set_has_window (GTK_WIDGET (view), FALSE);
 }
 
 /* class_init intialize the class itself not the instance */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]