FACT++  1.0
Widget gui_initialize ( int  argc,
char **  argv 
)

Definition at line 764 of file did.c.

References app_context, DEFAULT_FONT, did_default_font, did_label_font, did_server_font, did_small_font, display, gui_create_main_window(), gui_toplevel(), LABEL_FONT, MENU_FONT, SERVER_FONT, and util_get_font().

Referenced by main().

765 {
766 Widget toplevel;
768 
769  XtToolkitInitialize();
770  app_context = XtCreateApplicationContext();
771  display = XtOpenDisplay(app_context, NULL, argv[0], "DID",
772  NULL, 0, &argc, argv);
773  if (display == NULL)
774  {
775  printf("%s: Can't open display\n", argv[0]);
776  exit(1);
777  }
778  toplevel = gui_toplevel(argv);
779 
780  did_default_font = (XmFontList)util_get_font(DEFAULT_FONT, toplevel);
781  did_small_font = (XmFontList)util_get_font(MENU_FONT, toplevel);
782  did_label_font = (XmFontList)util_get_font(LABEL_FONT, toplevel);
783  did_server_font = (XmFontList)util_get_font(SERVER_FONT, toplevel);
784 
785  gui_create_main_window(toplevel);
786 
787  XtRealizeWidget ( toplevel );
788  return toplevel;
789 }
#define SERVER_FONT
Definition: did.h:31
static XmFontList did_label_font
Definition: did.c:40
static XmFontList did_default_font
Definition: did.c:40
Widget gui_toplevel(char **argv)
Definition: did.c:749
#define DEFAULT_FONT
Definition: did.h:27
static XmFontList did_small_font
Definition: did.c:40
XtAppContext app_context
Definition: did.h:38
#define MENU_FONT
Definition: did.h:29
Display * display
Definition: did.h:37
static XmFontList did_server_font
Definition: did.c:40
void gui_create_main_window(Widget parent)
Definition: did.c:139
#define LABEL_FONT
Definition: did.h:25
XmFontList util_get_font(char *fontname, Widget top)
Definition: did.c:89

+ Here is the call graph for this function:

+ Here is the caller graph for this function: