\fB\-d\fR
display debugging messages.
-.TP
-.BI \-display " host" : display
-specifies the host and screen to be used by \fBhvclock\fR. By default this
-is obtained from the environment variable
-.SB DISPLAY.
-
-.TP
-.BI \-geometry " geometry"
-.RB ( *geometry )
-specifies the initial geometry of the window.
-
.TP
\fB\-h\fR
display usage and exit
* New window creation and initialization for a Dockable Application
******************************************************************************/
void
-dockapp_init(int argc, char *argv[], char *display_arg, char *geometry_arg)
+dockapp_init(int argc, char *argv[])
{
GtkWidget *dockwin;
GtkWidget *iconwin;
ParseCommandLineOptions(argc, argv);
/* Initializing and creating a DockApp window. */
- dockapp_init(argc, argv, hvclock_infos.display_arg,
- hvclock_infos.geometry_arg);
+ dockapp_init(argc, argv);
gtk_main();
printf("Usage: %s [OPTIONS]...\n", PACKAGE);
printf("Dockable analog clock and calendar.\n\n");
printf
- (" -d Display debugging messages.\n");
- printf(" -display <host:display> X display name\n");
- printf(" -geometry +XPOS+YPOS initial window position\n");
+ (" -d display debugging messages.\n");
printf(" -h display this help and exit\n");
printf(" -n disable dockapp mode\n");
printf(" -s display seconds hand\n");
{
int i;
char *token;
- int display_on = false;
- int geometry_on = false;
/* Default values. */
hvclock_infos.debug = false;
/* Processing options names */
switch (token[1]) {
case 'd':
- if (STREQ("display", &token[1]))
- display_on = true;
- else if (strlen(&token[1]) == 1)
- hvclock_infos.debug = true;
- break;
- case 'g':
- if (STREQ("geometry", &token[1]))
- geometry_on = true;
+ hvclock_infos.debug = true;
break;
case 'h':
DisplayUsage();
break;
default:
/* Processing options arguments */
- if (display_on != false) {
- display_on = false;
- hvclock_infos.display_arg = token;
- } else if (geometry_on != false) {
- geometry_on = false;
- hvclock_infos.geometry_arg = token;
- } else {
- InvalidOption("invalid option", token);
- }
+ InvalidOption("invalid option", token);
break;
} /* end switch( token[0] ) */
} /* end for */
-
- if (display_on != false)
- InvalidOption("missing display parameter", NULL);
- else if (geometry_on != false)
- InvalidOption("missing geometry parameter", NULL);
}