#include <unistd.h>
#include "window.h"
+#include "main.h"
#include <ucx/buffer.h>
#include <ucx/utils.h>
-#define APP_NAME "MediaPlayer"
-
static XtAppContext app;
static Display *display;
app = XtCreateApplicationContext();
XtAppSetFallbackResources(app, fallback);
- display = XtOpenDisplay(app, NULL, APP_NAME, APP_NAME, NULL, 0, &argc, argv);
+ display = XtOpenDisplay(app, NULL, APP_NAME, APP_CLASS, NULL, 0, &argc, argv);
MainWindow *window = WindowCreate(display);
extern "C" {
#endif
+#define APP_NAME "uwplayer"
+#define APP_CLASS "uwplayer"
+
XtAppContext* GetAppContext(void);
void ApplicationExit(void);
// toplevel window
n = 0;
- XtSetArg(args[n], XmNtitle, "MediaPlayer"); n++;
+ XtSetArg(args[n], XmNtitle, APP_NAME); n++;
window->window = XtAppCreateShell(
- "mediaplayer",
- "mediaplayer",
- //applicationShellWidgetClass,
- vendorShellWidgetClass,
+ APP_NAME,
+ APP_CLASS,
+ applicationShellWidgetClass,
+ //vendorShellWidgetClass,
display,
args,
n);