ghex r1215 - trunk/src



Author: jjongsma
Date: Wed Aug 13 04:26:55 2008
New Revision: 1215
URL: http://svn.gnome.org/viewvc/ghex?rev=1215&view=rev

Log:
Revert "Fix 'floating' GtkHex widget issue (bug 527272)"

This reverts commit 4d1b57769d8d421e95d13f20854e894d60a291bc.

Conflicts:

	ChangeLog


Modified:
   trunk/src/gtkhex.c

Modified: trunk/src/gtkhex.c
==============================================================================
--- trunk/src/gtkhex.c	(original)
+++ trunk/src/gtkhex.c	Wed Aug 13 04:26:55 2008
@@ -736,8 +736,7 @@
 		gtk_paint_shadow(widget->style, widget->window,
 						 GTK_STATE_NORMAL, GTK_SHADOW_IN,
 						 NULL, widget, NULL,
-						 widget->allocation.x + border, widget->allocation.y + border,
-						 8*gh->char_width + 2*widget_get_xt(widget),
+						 border, border, 8*gh->char_width + 2*widget_get_xt(widget),
 						 widget->allocation.height - 2*border);
 		x += 8*gh->char_width + 2*widget_get_xt(widget);
 	}
@@ -745,15 +744,13 @@
 	gtk_paint_shadow(widget->style, widget->window,
 					GTK_STATE_NORMAL, GTK_SHADOW_IN,
 					 NULL, widget, NULL,
-					widget->allocation.x + x, widget->allocation.y + border,
-					gh->xdisp_width + 2*widget_get_xt(widget),
+					x, border, gh->xdisp_width + 2*widget_get_xt(widget),
 					widget->allocation.height - 2*border);
 	
 	gtk_paint_shadow(widget->style, widget->window,
 					GTK_STATE_NORMAL, GTK_SHADOW_IN,
 					 NULL, widget, NULL,
-					widget->allocation.x + widget->allocation.width - border - gh->adisp_width - gh->scrollbar->requisition.width - 2*widget_get_xt(widget),
-					widget->allocation.y + border,
+					widget->allocation.width - border - gh->adisp_width - gh->scrollbar->requisition.width - 2*widget_get_xt(widget), border,
 					gh->adisp_width + 2*widget_get_xt(widget),
 					widget->allocation.height - 2*border);
 }
@@ -1821,8 +1818,8 @@
 	xt = widget_get_xt(w);
 	yt = widget_get_yt(w);
 
-   	my_alloc.x = alloc->x + border_width + xt;
-	my_alloc.y = alloc->y + border_width + yt;
+   	my_alloc.x = border_width + xt;
+	my_alloc.y = border_width + yt;
 	my_alloc.height = MAX(alloc->height - 2*border_width - 2*yt, 1);
 	if(gh->show_offsets) {
 		my_alloc.width = 8*gh->char_width;
@@ -1832,13 +1829,13 @@
 	}
 	my_alloc.width = gh->xdisp_width;
 	gtk_widget_size_allocate(gh->xdisp, &my_alloc);
-	my_alloc.x = alloc->x + alloc->width - border_width - gh->scrollbar->requisition.width;
-	my_alloc.y = alloc->y + border_width;
+	my_alloc.x = alloc->width - border_width - gh->scrollbar->requisition.width;
+	my_alloc.y = border_width;
 	my_alloc.width = gh->scrollbar->requisition.width;
 	my_alloc.height = MAX(alloc->height - 2*border_width, 1);
 	gtk_widget_size_allocate(gh->scrollbar, &my_alloc);
 	my_alloc.x -= gh->adisp_width + xt;
-	my_alloc.y = alloc->y + border_width + yt;
+	my_alloc.y = border_width + yt;
 	my_alloc.width = gh->adisp_width;
 	my_alloc.height = MAX(alloc->height - 2*border_width - 2*yt, 1);
 	gtk_widget_size_allocate(gh->adisp, &my_alloc);



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