Search code examples
c++gtkgnomegtkmm

How to add GTKmm to Devhelp?


As you know, Devhelp is an API documentation browser for GTK+ and GNOME. It by default have included reference for many GTK+ related libraries but it doesn't have Gtkmm, the C++ wrapper for GTK+, which has an online reference in gnome official reference website.

I need to get an offline reference for Gtkmm so I can keep studying while not online. I read in the description of Murrayc web page that this can be added somehow, but that link and webpage seem to dead long ago.

So,is there a way to add this official library reference to my Devhelp app?


Solution

  • On Ubuntu, documentation is separate from normal packages (both because of space and because of licensing). As such, you will need to install separate packages to get gtkmm's documentation:

    • libgtkmm-3.0-doc for gtkmm for GTK+ 3
    • libgtkmm-2.4-doc for gtkmm for GTK+ 2

    There are a number of ways you can find these packages. If you know the name of the library, you can do sudo apt-get install libname on the command line and press Tab a few times to try to tab-complete the package name. You should see one with -doc at the end. You can also use a package management tool like Synaptic to find relevant packages.

    The same rules apply to header files and linker libraries; substitute -doc with -dev.