/* AntiRight (c) 2002-2005 Jeffrey Bedard jefbed@e-list.net This file is part of AntiRight. AntiRight is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. AntiRight is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with AntiRight; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "library.h" void antiright_setup_xt(int* argc, char **argv) { /* Set up Xt. */ antiright.parent_widget=XtVaAppInitialize(&antiright.app_context, "AntiRight", NULL, 0, argc, argv, NULL, NULL); } void antiright_initialize_antiright_data() { antiright.display=XtDisplay(antiright.parent_widget); antiright.screen=DefaultScreen(antiright.display); antiright.root_window=RootWindow(antiright.display, antiright.screen); } /* Handle arguments and set up parent_widget. The character string name contains the string to which the icon and window title will be set. The array bits contains the icon data for the application icon. */ void antiright_initialize_application(int* argc, char** argv, const char* name) { antiright_setup_xt(argc, argv); antiright_initialize_antiright_data(); antiright_set_title(name); antiright_system("ACE -c &"); }