change app name and app class
[uwplayer.git] / application / main.c
index 85687c5..60fa8b9 100644 (file)
 #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;
 
@@ -52,7 +51,7 @@ int main(int argc, char** argv) {
     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);