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

Definition at line 764 of file didMarkus.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 }
static XmFontList did_server_font
Definition: didMarkus.c:40
#define SERVER_FONT
Definition: did.h:31
Widget gui_toplevel(char **argv)
Definition: didMarkus.c:749
#define DEFAULT_FONT
Definition: did.h:27
XtAppContext app_context
Definition: did.h:38
#define MENU_FONT
Definition: did.h:29
static XmFontList did_default_font
Definition: didMarkus.c:40
Display * display
Definition: did.h:37
XmFontList util_get_font(char *fontname, Widget top)
Definition: didMarkus.c:89
static XmFontList did_label_font
Definition: didMarkus.c:40
void gui_create_main_window(Widget parent)
Definition: didMarkus.c:139
static XmFontList did_small_font
Definition: didMarkus.c:40
#define LABEL_FONT
Definition: did.h:25

+ Here is the call graph for this function:

+ Here is the caller graph for this function: