Re: [gedit-list] wrapping gedit-dev



Ciao Alessandro,

    yes, you can use the gtksourceviewmm bindings same way as yuo use gtkmm instead of raw gtk+.

As for you second question, yes, you would have to create a notebook etc yourself, gtksourceview will provide the view and the buffer for each document.

As Sebastien suggested, feel free to reuse gedit code and if you feel giving us feedback about which API should be incrementally migrated to gtksourceview we would be happy to hear it.

Ciao

   Paolo




On Tue, Mar 25, 2014 at 5:42 PM, Alessandro Vincenzi <alessandro84 vincenzi gmail com> wrote:
Hi.

thank you for your quick answer. Since I am working in c++, i'd rather use gtksourceview-3.0, non? Do you think the wrapper is stable?

A last question. This means using Gtk::Notebook to handle the tabs when multiple files are open in my IDE while every "tab" will have its own Gsv::View to show/edit the file, right?

Bests,

Alessandro


On Tue, Mar 25, 2014 at 5:22 PM, Paolo Borelli <pborelli katamail com> wrote:
Ciao Alessandro,

    gedit-dev is a development package to write gedit plugins, but not usable as a library in other projects.

You can use GtkSoureView instead which is the source code editing widget used by gedit. At the moment GtkSourceView does not provide some higher level API (like file loading and saving), but we are incrementally moving those from gedit to GtkSourceView. In the mean time you can "borrow" gedit code :)


Ciao

    Paolo








On Tue, Mar 25, 2014 at 4:05 PM, Alessandro Vincenzi <alessandro84 vincenzi gmail com> wrote:
Hi to everybody.

I recently started a project on SourceForge to port to GTKmm an old IDE for C projects that was initially developed for KDE3. The project is called GScope.

I was thinking to replace Kate with Gedit for what concerns source editing in the IDE.

* Can you please point me to some documentation to understand how to code the usage of gedit when including gedit-dev?

* Is there any example around of a software that has been already implemented on top of gedit to be used as reference?

Thank You

Alesandro

_______________________________________________
gedit-list mailing list
gedit-list gnome org
https://mail.gnome.org/mailman/listinfo/gedit-list






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