use g_timeout_add() instead of the deprecated gtk_timeout_add() set non-0

2007-05-27  Jens Granseuer  <jensgr@gmx.net>

	* pipeline-tests.c: (user_test_pipeline): use g_timeout_add() instead
	of the deprecated gtk_timeout_add()
	* sound-properties.glade: set non-0 pulse step for the progress bar to
	actually make it move (fixes bug #441587)

svn path=/trunk/; revision=7664
This commit is contained in:
Jens Granseuer 2007-05-27 18:50:41 +00:00 committed by Jens Granseuer
parent 1f606a3e3d
commit d66e29fc59
3 changed files with 10 additions and 3 deletions

View file

@ -53,7 +53,7 @@ user_test_pipeline_response (GtkDialog * widget, gint response_id,
}
/* Timer timeout has been occurred */
static gint
static gboolean
user_test_pipeline_timeout (gpointer data)
{
gtk_progress_bar_pulse (GTK_PROGRESS_BAR (data));
@ -163,7 +163,7 @@ user_test_pipeline (GladeXML * interface_xml,
if (dialog) {
gtk_window_present (GTK_WINDOW (dialog));
timeout_tag =
gtk_timeout_add (50, user_test_pipeline_timeout,
g_timeout_add (50, user_test_pipeline_timeout,
WID ("test_pipeline_progress"));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_timeout_remove (timeout_tag);