Mercurial > audlegacy
changeset 1968:b5fe3edc3fac trunk
[svn] - some code for seekbar
author | nenolod |
---|---|
date | Sun, 12 Nov 2006 06:15:11 -0800 |
parents | 00db92cf9bfe |
children | 55b05e25d4ef |
files | ChangeLog audacious/mainwin.c audacious/newui/newui_window.c |
diffstat | 3 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Nov 12 05:49:04 2006 -0800 +++ b/ChangeLog Sun Nov 12 06:15:11 2006 -0800 @@ -1,3 +1,11 @@ +2006-11-12 13:49:04 +0000 William Pitcock <nenolod@nenolod.net> + revision [2909] + - add code for the shuffle checkbox + + trunk/audacious/newui/newui_window.c | 15 +++++++++++++++ + 1 file changed, 15 insertions(+) + + 2006-11-12 13:38:48 +0000 William Pitcock <nenolod@nenolod.net> revision [2907] - temporarily display the newui at startup along with the oldui
--- a/audacious/mainwin.c Sun Nov 12 05:49:04 2006 -0800 +++ b/audacious/mainwin.c Sun Nov 12 06:15:11 2006 -0800 @@ -3770,6 +3770,8 @@ playlistwin_hide_timer(); input_update_vis(time); + newui_set_time(time, length); + if (cfg.timer_mode == TIMER_REMAINING) { if (length != -1) { number_set_number(mainwin_minus_num, 11);
--- a/audacious/newui/newui_window.c Sun Nov 12 05:49:04 2006 -0800 +++ b/audacious/newui/newui_window.c Sun Nov 12 06:15:11 2006 -0800 @@ -198,6 +198,18 @@ g_free(fullpath); } +/* ********** callbacks ********** */ + +void +newui_set_time(gint time, gint length) +{ + GladeXML *xml = g_object_get_data(G_OBJECT(newui_win), "glade-xml"); + GtkWidget *widget = glade_xml_get_widget(xml, "newui_seekbar"); + + gtk_range_set_range(GTK_RANGE(widget), 0, length); + gtk_range_set_value(GTK_RANGE(widget), time); +} + /* ********** signals ********** */ void