Re: Ctrl-C in gnome terminal and gtkhex widget...



Peter Hawkins wrote:

> 2) Does anyone know where I can get a non-MDI version of the gtkhex
> widget used in ghex? Looking at the source I think it will be a lot of
> work for me to rip out the HexDocument stuff to use it in my
> application. Are there any alternative hex  widgets? (viewing
> functionality only needed).
actually, I think that you only need to move the buffer from HexDocument
to
GtkHex, then make all the displaying and editing code use this instead
of
HexDocument's (you could probably even use sed to do it ;)). then rip
out
all the code that takes care of notifying HexDocument about changes
(since
you won't need view updating) - there should only be a few lines of
this.
if you only need viewing capability, simply ripping out all the editing
code
should also take care of it.

apart from that, midnight commander features a hex display. I don't know
whether
it is implemented as a widget, though.

regards,
	jaKa

-- 

w3:    http://pluton.ijs.si/~jaka
email: jaka.mocnik@kiss.uni-lj.si



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