I’m trying to write a C++ application on Gnome/Ubuntu as my first non-academic exercise in programming and I’m having trouble getting started with it. I can’t find any information on the different header files I need to include in order to access the functions in the Gnome API. I’ve looked around the Gnome developer site and found a few example programs that contain the lines
#include <glib-object.h>
#include <gtkmm.h>
#include "config.h"
However, these are just examples of the use of these particular headers and don’t tell me what functionality they provide in general. I’ve found the Gnome API documentation, but that just contains a list of all the available functions without any context.
The specific problem I’m trying to solve is getting at the passwords stored in the Gnome Keyring. There’s some example code that details how to store and retrieve passwords but those are just snippets from larger programs and don’t tell me how to get started writing one.
There are two things I’m looking for here:
-
The most important one is finding out about the available headers on Gnome. Where can I learn about what ones there are, what functionality they provide and what packages I need to install to be able to use them.
-
This one doesn’t matter if the above one gets sorted out, but if it doesn’t, then a complete example program that retrieves a password from the Gnome Keyring and stores it as a variable would help me get started.
You can find all documentation and tutorials at developer.gnome.org.
Additionally you can use
pkg-configtool which will tell you include and library paths. For Gnome Keyring it gives the following: