New app_id parameter for gnome_init()



Hello, everyone

I have added an extra parameter to the gnome_init() function.  Now the
prototype looks like this:

	void gnome_init (char *app_id, int *argc, char ***argv);

The app_id parameter is new, as you can see.  It will be used by the
Gnome libraries to have an identifier with which to save interesting
configuration options automatically.

For example, the GnomeEntry widget (in progress of being written) is
really a GtkCombo that can automatically save the history strings to
some file under ~/.gnome.  This file is built from the app identifier
(app_id).

Other things in the gnome libraries will make use of this identifier
as well.

So for instance, gnomovision can have something like

	int main (int argc, char **argv)
	{
		gnome_init ("gnomovision", &argc, &argv);
		...
	}

Your programs should do this accordingly with their own identifier.

I have changed everything in the gnome-* modules to the new form of
gnome_init().  I may be missing some files in the Gnome programs that
are external modules (not in the gnome-* family).  I would be grateful
if the maintainers of these modules could please make the appropriate
changes.

  Quartic



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