]> uap-core.de Git - uwplayer.git/commitdiff
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 85687c5400c31ca89e1ba18be06e95b3c425cf84..60fa8b9ba3e2423aed4ebcf25fe9e663e99e5fb7 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 3a8e3e82010d58e9d33ec346d1dcad116ca960b6..b16f5ec55428ce624ce0ef275e407add4f353506 100644 (file)
@@ -29,6 +29,9 @@
 extern "C" {
 #endif
 
+#define APP_NAME "uwplayer"
+#define APP_CLASS "uwplayer"
+    
 XtAppContext* GetAppContext(void);
 
 void ApplicationExit(void);
index 412381f64a4a4f91d4cabeb0a3e089257d4a1f28..6ee3bf860269a6791b42c349a8c489aac3872a6f 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);