From: Olaf Wintermann Date: Thu, 6 Jan 2022 09:21:18 +0000 (+0100) Subject: change app name and app class X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=c4cf851645a637c53ffc489fd928f5ee319c59d3;p=uwplayer.git change app name and app class --- diff --git a/application/main.c b/application/main.c index 85687c5..60fa8b9 100644 --- a/application/main.c +++ b/application/main.c @@ -25,12 +25,11 @@ #include #include "window.h" +#include "main.h" #include #include -#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); diff --git a/application/main.h b/application/main.h index 3a8e3e8..b16f5ec 100644 --- a/application/main.h +++ b/application/main.h @@ -29,6 +29,9 @@ extern "C" { #endif +#define APP_NAME "uwplayer" +#define APP_CLASS "uwplayer" + XtAppContext* GetAppContext(void); void ApplicationExit(void); diff --git a/application/window.c b/application/window.c index 412381f..6ee3bf8 100644 --- a/application/window.c +++ b/application/window.c @@ -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);