Support operating on global backends Add popt option for operating on
2001-01-25 Bradford Hovinen <hovinen@ximian.com> * main.c (main): Support operating on global backends Add popt option for operating on global backends
This commit is contained in:
parent
cabe27ab37
commit
926c6838c7
3 changed files with 23 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-01-25 Bradford Hovinen <hovinen@ximian.com>
|
||||
|
||||
* main.c (main): Support operating on global backends
|
||||
Add popt option for operating on global backends
|
||||
|
||||
2001-01-24 Bradford Hovinen <hovinen@ximian.com>
|
||||
|
||||
* config-manager-dialog.c (config_manager_dialog_finalize): Update
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
Short-term
|
||||
* Get this thing to actually work
|
||||
* Accept command line argument to tell whether it's going to be user
|
||||
or global
|
||||
* Accept command line argument to allow rollback of a specific backend
|
||||
* Remove backends list and rely on the above command line argument
|
||||
* Add logic in the control center to activate this capplet with the
|
||||
|
@ -22,3 +19,8 @@ Long(er)-term
|
|||
capplets (which are then bonobo controls).
|
||||
- This could be a feature of libcapplet enabled by a command
|
||||
line switch
|
||||
|
||||
Done
|
||||
* Get this thing to actually work
|
||||
* Accept command line argument to tell whether it's going to be user
|
||||
or global
|
||||
|
|
|
@ -30,6 +30,14 @@
|
|||
|
||||
#include "config-manager-dialog.h"
|
||||
|
||||
static gboolean is_global;
|
||||
|
||||
static struct poptOption rollback_options[] = {
|
||||
{"global", 'g', POPT_ARG_NONE, &is_global, 0,
|
||||
N_("Operate on global backends")},
|
||||
{NULL, '\0', 0, NULL, 0}
|
||||
};
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
|
@ -38,10 +46,14 @@ main (int argc, char **argv)
|
|||
bindtextdomain (PACKAGE, GNOMELOCALEDIR);
|
||||
textdomain (PACKAGE);
|
||||
|
||||
gnomelib_register_popt_table (rollback_options,
|
||||
_("Options for the rollback GUI"));
|
||||
|
||||
gnome_init ("config-manager", VERSION, argc, argv);
|
||||
glade_gnome_init ();
|
||||
|
||||
dialog = config_manager_dialog_new (CM_DIALOG_USER);
|
||||
dialog = config_manager_dialog_new
|
||||
(is_global ? CM_DIALOG_GLOBAL : CM_DIALOG_USER);
|
||||
gtk_widget_show (dialog);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (dialog), "destroy",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue