# HG changeset patch # User nenolod # Date 1163340911 28800 # Node ID b5fe3edc3facf343e57792c7e9f1b10c238c5346 # Parent 00db92cf9bfeab8d42339d1536e60e85283eff79 [svn] - some code for seekbar diff -r 00db92cf9bfe -r b5fe3edc3fac ChangeLog --- 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 + 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 revision [2907] - temporarily display the newui at startup along with the oldui diff -r 00db92cf9bfe -r b5fe3edc3fac audacious/mainwin.c --- 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); diff -r 00db92cf9bfe -r b5fe3edc3fac audacious/newui/newui_window.c --- 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