develop.uap-core.de/git
/
uwplayer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement playlist remove
[uwplayer.git]
/
application
/
player.c
diff --git
a/application/player.c
b/application/player.c
index
42f09e7
..
2d63135
100644
(file)
--- a/
application/player.c
+++ b/
application/player.c
@@
-242,6
+242,12
@@
static int connect_to_ipc(Player *player) {
return 0;
}
return 0;
}
+static Boolean update_player_window(XtPointer data) {
+ MainWindow *win = data;
+ WindowUpdate(win);
+ return 0;
+}
+
static void* start_player(void *data) {
MainWindow *win = data;
static void* start_player(void *data) {
MainWindow *win = data;
@@
-272,6
+278,9
@@
static void* start_player(void *data) {
}
win->player = player;
}
win->player = player;
+ // update main window
+ AppExecProc(update_player_window, win);
+
// IO
player_io(player);
// IO
player_io(player);
@@
-348,6
+357,10
@@
static void handle_json_rpc_msg(Player *player, JSONValue *v) {
static Boolean player_widget_set_size(XtPointer data) {
Player *player = data;
MainWindow *win = GetMainWindow();
static Boolean player_widget_set_size(XtPointer data) {
Player *player = data;
MainWindow *win = GetMainWindow();
+
+ if(!win->adjustWindowSize) {
+ return 0;
+ }
Dimension win_width, win_height;
XtVaGetValues(win->window, XmNwidth, &win_width, XmNheight, &win_height, NULL);
Dimension win_width, win_height;
XtVaGetValues(win->window, XmNwidth, &win_width, XmNheight, &win_height, NULL);