Re: meld integration
- From: "Stephen Kennedy" <stevek gnome org>
- To: pratz ircam fr, meld-list gnome org
- Subject: Re: meld integration
- Date: Sun, 4 Jan 2009 11:00:41 +0000
> I'm working on a translator from matlab to C++, and to ease the
> work of the developers using my software, I'd like to integrate
> a 2-way editor with your central diff bar...
>
> I tried going through your code finding all the pieces I need,
> but if you could tell where to go, what to look at to find them,
> could help me a lot ;)
Hi Bernard,
I've attached a quick and dirty snippet which fires up a comparison in
a gtk window. Expect to do some more reading to get this working fully
correctly!
Stephen.
> and btw, thanks on your work on meld, it's really helpful, I use
> it on an everyday basis :)
import filediff
import meldapp
import gtk
import task
w = gtk.Window()
w.show_all()
s = task.LifoScheduler()
p = meldapp.MeldPreferences()
f = filediff.FileDiff(p, 2)
f.scheduler = s
f.set_files( ["changelog", "dirdiff.py"])
f.widget.show()
w.connect("delete-event", gtk.main_quit)
w.add(f.widget)
w.show()
gtk.idle_add( s.iteration )
gtk.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]