change app name and app class
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Thu, 6 Jan 2022 09:21:18 +0000 (10:21 +0100)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Thu, 6 Jan 2022 09:21:18 +0000 (10:21 +0100)
application/main.c
application/main.h
application/window.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);
     
index 3a8e3e8..b16f5ec 100644 (file)
@@ -29,6 +29,9 @@
 extern "C" {
 #endif
 
+#define APP_NAME "uwplayer"
+#define APP_CLASS "uwplayer"
+    
 XtAppContext* GetAppContext(void);
 
 void ApplicationExit(void);
index 412381f..6ee3bf8 100644 (file)
@@ -61,12 +61,12 @@ MainWindow* WindowCreate(Display *display) {
     
     // 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);