ucx update
[uwplayer.git] / application / main.c
index 43d6c05..d8a3b31 100644 (file)
@@ -32,8 +32,8 @@
 #include "main.h"
 #include "settings.h"
 
-#include <ucx/buffer.h>
-#include <ucx/utils.h>
+#include <cx/buffer.h>
+#include <cx/utils.h>
 
 static XtAppContext app;
 static Display *display;
@@ -51,7 +51,7 @@ static String fallback[] = {
         
         "*pbbutton.shadowThickness: 1",
         "*pbbutton.highlightThickness: 1",
-    
+        
         "*XmText.baseTranslations: #override\\n" \
                                 "Ctrl~Alt~Meta<KeyPress>v: paste-clipboard()\\n" \
                                 "Ctrl~Alt~Meta<KeyPress>c: copy-clipboard()\\n" \
@@ -122,14 +122,14 @@ int main(int argc, char** argv) {
             NULL);
     
     // load settings
-    if(load_settings()) {
+    if(load_config()) {
         return 1;
     }
-    
+   
     MainWindow *window = WindowCreate(display);
     toplevel_window = window->window;
     
-    // random numbers only used for creating tmp dirs
+    // random numbers used for creating tmp dirs and for random playback
     srand(time(NULL));
     
     WindowShow(window);
@@ -176,7 +176,7 @@ void AppMainLoop(XtAppContext app) {
         XtAppNextEvent(app, &event);
         
         if(app_player_window != 0 && event.xany.window == app_player_window) {
-            WindowPlayerWidgetEvent(GetMainWindow(), &event);
+            WindowHandlePlayerEvent(GetMainWindow(), &event);
         } else {
             XtDispatchEvent(&event);
         }