Mercurial > audlegacy
comparison src/audacious/genevent.c @ 2942:1a59a0ced6a8 trunk
make scrolling stop for second when it reaches end, replace remaining mainwin TextBox with UiSkinnedTextbox
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sat, 30 Jun 2007 18:44:20 +0200 |
parents | 6884a2144a01 |
children | cfb04f784a84 |
comparison
equal
deleted
inserted
replaced
2941:d9a2434375f1 | 2942:1a59a0ced6a8 |
---|---|
53 #include "playback.h" | 53 #include "playback.h" |
54 #include "playlist.h" | 54 #include "playlist.h" |
55 #include "pluginenum.h" | 55 #include "pluginenum.h" |
56 #include "ui_main.h" | 56 #include "ui_main.h" |
57 #include "ui_playlist.h" | 57 #include "ui_playlist.h" |
58 #include "ui_skinned_textbox.h" | |
58 #include "util.h" | 59 #include "util.h" |
59 #include "visualization.h" | 60 #include "visualization.h" |
60 #include "vfs.h" | 61 #include "vfs.h" |
61 | 62 |
62 gboolean ev_waiting = FALSE; | 63 gboolean ev_waiting = FALSE; |
89 | 90 |
90 if (mainwin_sposition != NULL && !mainwin_sposition->hs_pressed) { | 91 if (mainwin_sposition != NULL && !mainwin_sposition->hs_pressed) { |
91 gchar time_str[5]; | 92 gchar time_str[5]; |
92 | 93 |
93 g_snprintf(time_str, sizeof(time_str), "%2.2d", timeleft / 60); | 94 g_snprintf(time_str, sizeof(time_str), "%2.2d", timeleft / 60); |
94 textbox_set_text(mainwin_stime_min, time_str); | 95 ui_skinned_textbox_set_text(mainwin_stime_min, time_str); |
95 | 96 |
96 g_snprintf(time_str, sizeof(time_str), "%2.2d", timeleft % 60); | 97 g_snprintf(time_str, sizeof(time_str), "%2.2d", timeleft % 60); |
97 textbox_set_text(mainwin_stime_sec, time_str); | 98 ui_skinned_textbox_set_text(mainwin_stime_sec, time_str); |
98 } | 99 } |
99 | 100 |
100 playlistwin_set_time(timeleft * 1000, 0, TIMER_ELAPSED); | 101 playlistwin_set_time(timeleft * 1000, 0, TIMER_ELAPSED); |
101 } | 102 } |
102 | 103 |