Mercurial > audlegacy
comparison src/audacious/ui_fileinfopopup.c @ 2613:0280eb67fd5d trunk
[svn] - use gdk_get_default_root_window in place of NULL for gdk_window_get_pointer
author | giacomo |
---|---|
date | Wed, 07 Mar 2007 16:26:51 -0800 |
parents | 2c41c0ef0c36 |
children | f6c8622ef240 |
comparison
equal
deleted
inserted
replaced
2612:ba44276ecdc8 | 2613:0280eb67fd5d |
---|---|
432 audacious_fileinfopopup_progress_start(filepopup_win); | 432 audacious_fileinfopopup_progress_start(filepopup_win); |
433 /* immediately run the callback once to update progressbar status */ | 433 /* immediately run the callback once to update progressbar status */ |
434 audacious_fileinfopopup_progress_cb(filepopup_win); | 434 audacious_fileinfopopup_progress_cb(filepopup_win); |
435 } | 435 } |
436 | 436 |
437 gdk_window_get_pointer(NULL, &x, &y, NULL); | 437 gdk_window_get_pointer(gdk_get_default_root_window(), &x, &y, NULL); |
438 gtk_window_get_size(GTK_WINDOW(filepopup_win), &w, &h); | 438 gtk_window_get_size(GTK_WINDOW(filepopup_win), &w, &h); |
439 if (gdk_screen_width()-(w+3) < x) x_off = (w*-1)-3; | 439 if (gdk_screen_width()-(w+3) < x) x_off = (w*-1)-3; |
440 if (gdk_screen_height()-(h+3) < y) y_off = (h*-1)-3; | 440 if (gdk_screen_height()-(h+3) < y) y_off = (h*-1)-3; |
441 gtk_window_move(GTK_WINDOW(filepopup_win), x + x_off, y + y_off); | 441 gtk_window_move(GTK_WINDOW(filepopup_win), x + x_off, y + y_off); |
442 | 442 |