Index: xfburn/xfburn-blank-dialog.c =================================================================== --- xfburn/xfburn-blank-dialog.c (revision 5080) +++ xfburn/xfburn-blank-dialog.c (working copy) @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifdef HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H #include #endif /* !HAVE_CONFIG_H */ @@ -508,7 +508,6 @@ dialog_progress = xfburn_progress_dialog_new (GTK_WINDOW (dialog)); - g_object_set (dialog_progress, "animate", TRUE, NULL); gtk_widget_hide (GTK_WIDGET (dialog)); Index: xfburn/xfburn-progress-dialog.c =================================================================== --- xfburn/xfburn-progress-dialog.c (revision 5080) +++ xfburn/xfburn-progress-dialog.c (working copy) @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifdef HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H #include #endif /* !HAVE_CONFIG_H */ @@ -44,8 +44,6 @@ { XfburnProgressDialogStatus status; int fd_stdin; - gboolean animate; - int ani_index; GtkWidget *label_action; GtkWidget *progress_bar; @@ -77,11 +75,8 @@ PROP_0, PROP_STATUS, PROP_SHOW_BUFFERS, - PROP_ANIMATE, }; -static gchar animation[] = { '-', '\\', '|', '/' }; - /* */ /* enumeration type for dialog status */ /* */ @@ -150,9 +145,6 @@ g_object_class_install_property (object_class, PROP_SHOW_BUFFERS, g_param_spec_boolean ("show-buffers", "Show buffers", "Show buffers", TRUE, G_PARAM_READWRITE)); - g_object_class_install_property (object_class, PROP_ANIMATE, - g_param_spec_boolean ("animate", "Show an animation", "Show an animation", - FALSE, G_PARAM_READWRITE)); } static void @@ -251,9 +243,6 @@ g_object_get (G_OBJECT (priv->hbox_buffers), "visible", &show_buffers, NULL); g_value_set_boolean (value, show_buffers); break; - case PROP_ANIMATE: - g_value_set_boolean (value, priv->animate); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -273,11 +262,6 @@ case PROP_SHOW_BUFFERS: xfburn_progress_dialog_show_buffers (dialog, g_value_get_boolean (value)); break; - case PROP_ANIMATE: - priv->animate = g_value_get_boolean (value); - priv->ani_index = 0; - //DBG ("Set animate to %d", priv->animate); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -509,12 +493,7 @@ text = g_strdup ("0%"); } else if (priv->status == XFBURN_PROGRESS_DIALOG_STATUS_RUNNING && fraction >= cur_fraction) { - if (priv->animate) { - text = g_strdup_printf ("%2d%% %c", (int) (fraction * 100), animation[priv->ani_index]); - priv->ani_index = (priv->ani_index + 1) % 4; - } else { - text = g_strdup_printf ("%d%% ", (int) (fraction * 100)); - } + text = g_strdup_printf ("%d%% ", (int) (fraction * 100)); } else if (fraction < cur_fraction) { return; @@ -574,7 +553,7 @@ { XfburnProgressDialog *obj; obj = XFBURN_PROGRESS_DIALOG (g_object_new (XFBURN_TYPE_PROGRESS_DIALOG, "transient-for", parent, - "modal", TRUE, NULL)); - + "modal", TRUE, NULL)); + return GTK_WIDGET (obj); }